Forráskód Böngészése

Merge branch '添加生图积分和服务商切换' into 20260415生产发布版本

yanym 3 hete
szülő
commit
b17dbed72b
1 módosított fájl, 7 hozzáadás és 2 törlés
  1. 7 2
      src/views/AIDesign/design.vue

+ 7 - 2
src/views/AIDesign/design.vue

@@ -1369,8 +1369,13 @@ export default class extends Vue {
     formData.append('projectid', projectId);
     GetProjectlist(formData).then(response => {
       if (response.StatusCode == 200) {
-        that.checkedProject = response.Data[0];
-        that.radioClick(response.Data[0].servicecode,'',false);
+        const serviceCodeIndex = that.fwsList.findIndex(item => item.shop_code == response.Data[0].servicecode);
+        if (serviceCodeIndex == -1){
+            that.radioClick(that.fwsList[0].shop_code,'',true);
+        }else {
+            that.checkedProject = response.Data[0];
+            that.radioClick(response.Data[0].servicecode,'',false);
+        }
       } else {
         // console.log(response.Info)
       }