From e116bdd983b4a456c866119666e41bbaab4f7293 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 15 七月 2022 16:42:08 +0800
Subject: [PATCH] 禅道bug

---
 src/pages/ai/index/App.vue |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/src/pages/ai/index/App.vue b/src/pages/ai/index/App.vue
index 9f98453..e466408 100644
--- a/src/pages/ai/index/App.vue
+++ b/src/pages/ai/index/App.vue
@@ -26,7 +26,8 @@
                 <span class="icon iconfont all-scene">&#xe703;</span>
                 <el-input
                   placeholder="鎼滅储"
-                  v-model="inputText" @change="searchAll"
+                  v-model="inputText"
+                  @change="searchAll"
                   class="input-with-select"
                 >
                   <i class="el-icon-search" slot="prepend"></i>
@@ -568,9 +569,9 @@
     this.autoRefresh = false;
   },
   methods: {
-    searchAll(){
-      this.getAllApps()
-      this.getAllSdk()
+    searchAll() {
+      this.getAllApps();
+      this.getAllSdk();
       this.getUnActivedList(1);
       this.getUnActivedAppList();
     },
@@ -695,7 +696,7 @@
         })
         .catch((e) => {
           this.isInstall = false;
-          this.$message.error(e.data);
+          this.$message.error(e.msg);
         });
     },
     downloadApp(app, action) {
@@ -730,7 +731,7 @@
       let iArry = [];
       let sArry = [];
       let nArry = [];
-      let rsp = await getApps({appName:this.inputText});
+      let rsp = await getApps({ appName: this.inputText });
       if (rsp && rsp.success) {
         // 閬嶅巻app鐨勮繃绋嬮噸缃�
         this.appUpgreading = false;
@@ -794,7 +795,7 @@
       };
     },
     getUnActivedList(v) {
-      getUnActivedSdk({sdkName:this.inputText}).then((res) => {
+      getUnActivedSdk({ sdkName: this.inputText }).then((res) => {
         if (res.code == 200) {
           this.unActivedSDKList = res.data;
           const len = this.unActivedSDKList.length;
@@ -817,7 +818,7 @@
       });
     },
     getUnActivedAppList() {
-      getUnActivedApp({appName:this.inputText}).then((res) => {
+      getUnActivedApp({ appName: this.inputText }).then((res) => {
         if (res.code == 200) {
           this.unActivedAppList = res.data;
           this.pickTab();
@@ -844,8 +845,7 @@
               _this.$notify.error(res.data.failMsg.failMsg);
             }
           })
-          .catch((e) => {
-          });
+          .catch((e) => {});
       } else if (this.activeTab == "app") {
         //婵�娲诲簲鐢�
         actApp(item.id, "")
@@ -861,8 +861,7 @@
               _this.$notify.error(res.data.failMsg.failMsg);
             }
           })
-          .catch((e) => {
-          });
+          .catch((e) => {});
       }
     },
     onFileUpload(file) {
@@ -907,7 +906,7 @@
       let installedList = [];
       let unInstalledList = [];
       let hasNewVersionList = [];
-      let res = await findAllSdk({sdkName:this.inputText});
+      let res = await findAllSdk({ sdkName: this.inputText });
       if (res && res.success) {
         this.sdkUpgreading = false;
 

--
Gitblit v1.8.0