Преглед на файлове

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

lifanagju_citu преди 11 месеца
родител
ревизия
88bba683e3
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/store/user.js

+ 1 - 0
src/store/user.js

@@ -68,6 +68,7 @@ export const useUserStore = defineStore('user',
           const api = this.loginType ? null : getBaseInfo
           if (!api) return
           const data = await api({ userId: userId || this.accountInfo.userId })
+          if (!data) return
           this.baseInfo = await this.getFieldText(data)
           localStorage.setItem('baseInfo', JSON.stringify(this.baseInfo))
         } catch (error) {