a1300399510@qq.com 提交于 2023/04/03 -17:20:01

This commit is contained in:
XiaoMo 2023-04-03 17:20:10 +08:00
parent 0b09358ccf
commit b7f562c7eb
3 changed files with 20 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="hint-box flexcenter" v-if="messageHint" v-html="messageHint"></div>
<div class="hint-box flexcenter" v-if="messagehint" v-html="messagehint"></div>
</template>
<script>
@ -8,12 +8,23 @@ export default {
data() {
return {
messageHint: "",
};
},
mounted() {
props: ["messagehint", "isauto"],
watch: {
isauto(val, oldVal) {
if (val) {
setTimeout(() => {
this.$parent.messagehint = ""
}, 1500)
}
}
},
mounted() {
console.log(this.messagehint, "messagehint");
},
methods: {

View File

@ -6,6 +6,7 @@ import ElementUI, { Message, Pagination } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { skipUrl, pageStop, pageMove, goTologin, copy, startupUnderLoading, closeUnderLoading } from "@/utils/common.js"
import http from "@/utils/request"
import hintBox from '@/components/Hintbox'
Vue.config.productionTip = false

View File

@ -20,6 +20,7 @@
</div>
</div>
</div>
</template>
@ -31,9 +32,9 @@ export default {
allActive: 0,
list: [{}],
postCollectionState: false, //
}
},
methods: {
allClick(index) {
this.allActive = index
@ -64,6 +65,9 @@ export default {
}).then(res => {
if (res.code != 200) return
this.list[this.allActive].data[k]['iscollection'] = 0
this.$Message({
})
this.$forceUpdate()
}).finally(() => {
this.postCollectionState = false