修复个人主页账户信息加载失败问题
This commit is contained in:
parent
cf1eddcf67
commit
c3c1d38da3
@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
import HeaderBreadcrumb from "@/components/HeaderBreadcrumb.vue";
|
||||
import {onMounted, reactive, ref} from "vue";
|
||||
import {onMounted, reactive, ref, watchEffect} from "vue";
|
||||
import {useAccount} from "@/stores/user.js";
|
||||
import request from "@/net/index.js";
|
||||
import Swal from "sweetalert2";
|
||||
@ -78,7 +78,7 @@ function saveProfile() {
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
watchEffect(() => {
|
||||
info.nickName = account.info.nickName
|
||||
info.phonenumber = account.info.phonenumber
|
||||
info.email = account.info.email
|
||||
|
Loading…
x
Reference in New Issue
Block a user