Просмотр исходного кода

fix(store): 修复获取第三方主题色时accessId为空的问题

- 为getAccessIdFromPath方法返回空值时添加默认accessId 'ch_002'
- 修正了store/sys.ts中getThirdPartyThemeColor的访问逻辑
- 清理了manifest.json文件末尾多余空行,提高代码整洁度
zhangtao 8 часов назад
Родитель
Сommit
6227d4f7ed
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/store/sys.ts

+ 1 - 1
src/store/sys.ts

@@ -119,7 +119,7 @@ export const useSysStore = defineStore('system', {
     async getThirdPartyThemeColor() {
     async getThirdPartyThemeColor() {
       if (this.tenantCode)
       if (this.tenantCode)
         return
         return
-      const accessId = this.getAccessIdFromPath()
+      const accessId = this.getAccessIdFromPath() || 'ch_002'
       try {
       try {
         const res = await Apis.sys.appAccess({ pathParams: { accessId } })
         const res = await Apis.sys.appAccess({ pathParams: { accessId } })
         this.thirdPartyName = res.data.accessName
         this.thirdPartyName = res.data.accessName