修改成计算属性

This commit is contained in:
luyuan 2020-11-17 16:41:52 +08:00
parent 64ee8b8a4f
commit bff5eef8fa
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -153,7 +153,7 @@ export default defineComponent({
const moneychange: (e: number) => void = (e: number) => {
console.log(e);
};
const yue=ref<number>(store.state.userinfo.moneyValue)
const yue=computed( () => store.state.userinfo.moneyValue)
const danwei = computed(() => store.state.userinfo.symbol)
// const yue = ref<number>(10000);
// yue.value=store.state.userinfo.money