修改成计算属性
This commit is contained in:
parent
64ee8b8a4f
commit
bff5eef8fa
@ -153,7 +153,7 @@ export default defineComponent({
|
|||||||
const moneychange: (e: number) => void = (e: number) => {
|
const moneychange: (e: number) => void = (e: number) => {
|
||||||
console.log(e);
|
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 danwei = computed(() => store.state.userinfo.symbol)
|
||||||
// const yue = ref<number>(10000);
|
// const yue = ref<number>(10000);
|
||||||
// yue.value=store.state.userinfo.money
|
// yue.value=store.state.userinfo.money
|
||||||
|
Loading…
Reference in New Issue
Block a user