yinxiangke 2 hete
szülő
commit
52ba23e0fb
1 módosított fájl, 14 hozzáadás és 0 törlés
  1. 14 0
      src/pages/PersonalCenter.vue

+ 14 - 0
src/pages/PersonalCenter.vue

@@ -682,6 +682,20 @@ const isPasswordEmail = computed(() => {
 const createAi = async (creatFlag) => {
   let res = await createAiAccount({ creatFlag });
   if (res.code === 200) {
+    if (creatFlag == '0') {
+      userInfo.value.n8nAccount = res.data.n8nAccount;
+      userInfo.value.n8nPassword = res.data.n8nPassword;
+    } else if (creatFlag == '1') {
+      userInfo.value.cozeAccount = res.data.cozeAccount;
+      userInfo.value.cozePassword = res.data.cozePassword;
+    } else if (creatFlag == '2') {
+      userInfo.value.difyAccount = res.data.difyAccount;
+      userInfo.value.difyPassword = res.data.difyPassword;
+    } else if (creatFlag == '3') {
+      userInfo.value.fastGptAccount = res.data.fastGptAccount;
+      userInfo.value.fastGptPassword = res.data.fastGptPassword;
+    }
+    appStore.USERINFO();
     DGTMessage.success(`${t('common.success')}`)
   }
 }