zs há 1 ano atrás
pai
commit
57e29dbac7
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/views/account/center/parts/password.vue

+ 2 - 2
src/views/account/center/parts/password.vue

@@ -43,7 +43,7 @@ const rules = ref({
       }
     }
   ]
-});
+})
 // 请求
 onMounted(async () => {
   loading.value = true
@@ -51,7 +51,7 @@ onMounted(async () => {
 })
 // 提交保存
 const toSave = async (data) => {
-  let res = await store.rp({ _id: user._id, password: data.password, type: user.role });
+  let res = await store.rp({ _id: user._id, password: data.password, type: user.role })
   if ($checkRes(res, true)) {
     userStore.logOut()
     tagsViewStore.delAllViews()