Commit f42b5292 authored by 铃兰's avatar 铃兰

重新修复了卡组数不更新的bug

parent 60bc4566
Pipeline #22677 passed with stages
in 1 minute and 10 seconds
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
watch: { watch: {
lang: function (val) { lang: function (val) {
// console.log('lang change1', val) // console.log('lang change1', val)
this.init2(); this.init2()
}, },
}, },
methods: { methods: {
...@@ -493,7 +493,7 @@ export default { ...@@ -493,7 +493,7 @@ export default {
}, },
onChange: function () { onChange: function () {
$("#search").trigger('click') $("#search").trigger('click')
this.getCount(); this.getCount()
}, },
getCount: function () { getCount: function () {
var server = $("#server").val() || "mycard" var server = $("#server").val() || "mycard"
...@@ -507,6 +507,8 @@ export default { ...@@ -507,6 +507,8 @@ export default {
if (isNaN(res.data)) { if (isNaN(res.data)) {
return 0; return 0;
} else { } else {
this.totalDeck = res.data;
this.$forceUpdate();
return res.data; return res.data;
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment