فهرست منبع

编辑器- 选择原件相关的图例 时有时无的问题 异步请求接口

xiebeibei 4 سال پیش
والد
کامیت
030a4e2e2f
1فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  1. 3 5
      src/components/edit/left_toolbar.vue

+ 3 - 5
src/components/edit/left_toolbar.vue

@@ -304,7 +304,7 @@ export default {
       items.isChoice = true;
       this.$emit("setCmdType", items.type);
     },
-    showDrawer(item) {
+   async showDrawer(item) {
       this.showDrawerItem = item;
       this.isExtract = false;
       if (item.isChoice) {
@@ -327,16 +327,14 @@ export default {
           GraphCategoryIds: this.categoryId,
           Type: item.type
         };
-
-        queryGroup(data).then(res => {
+      await  queryGroup(data).then(res => {
           this.itemList = res.Data;
         });
         const arr = {
           InfoSystems: this.categoryIdS,
           Type: item.type
         };
-
-        graphElementGroup(arr).then(res => {
+       await graphElementGroup(arr).then(res => {
           this.spinning = false;
           res.Data.map(item => {
             this.itemList.push(item);