a1300399510@qq.com 提交于 2023/04/03 -17:20:01
This commit is contained in:
parent
0b09358ccf
commit
b7f562c7eb
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -8,12 +8,23 @@ export default {
|
|||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
messageHint: "",
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
props: ["messagehint", "isauto"],
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
isauto(val, oldVal) {
|
||||||
|
if (val) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$parent.messagehint = ""
|
||||||
|
}, 1500)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
console.log(this.messagehint, "messagehint");
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
@ -6,6 +6,7 @@ import ElementUI, { Message, Pagination } from 'element-ui';
|
|||||||
import 'element-ui/lib/theme-chalk/index.css';
|
import 'element-ui/lib/theme-chalk/index.css';
|
||||||
import { skipUrl, pageStop, pageMove, goTologin, copy, startupUnderLoading, closeUnderLoading } from "@/utils/common.js"
|
import { skipUrl, pageStop, pageMove, goTologin, copy, startupUnderLoading, closeUnderLoading } from "@/utils/common.js"
|
||||||
import http from "@/utils/request"
|
import http from "@/utils/request"
|
||||||
|
import hintBox from '@/components/Hintbox'
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -31,9 +32,9 @@ export default {
|
|||||||
allActive: 0,
|
allActive: 0,
|
||||||
list: [{}],
|
list: [{}],
|
||||||
postCollectionState: false, // 收藏的请求的状态
|
postCollectionState: false, // 收藏的请求的状态
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
allClick(index) {
|
allClick(index) {
|
||||||
this.allActive = index
|
this.allActive = index
|
||||||
@ -64,6 +65,9 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code != 200) return
|
if (res.code != 200) return
|
||||||
this.list[this.allActive].data[k]['iscollection'] = 0
|
this.list[this.allActive].data[k]['iscollection'] = 0
|
||||||
|
this.$Message({
|
||||||
|
|
||||||
|
})
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.postCollectionState = false
|
this.postCollectionState = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user