From 7e33695561c2da43fcc752894e9bd46a7059cb3f Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期四, 14 九月 2023 15:38:25 +0800
Subject: [PATCH] 	modified:   src/components/view/standard.vue

---
 src/components/view/standard.vue |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/components/view/standard.vue b/src/components/view/standard.vue
index 6a115b4..6c12b0b 100644
--- a/src/components/view/standard.vue
+++ b/src/components/view/standard.vue
@@ -1167,6 +1167,28 @@
       handler(newval,oldVal){
         if(newval){
         let treeOptions = JSON.parse(JSON.stringify(this.list));
+        if(treeOptions.length<1){
+          let obj={
+            name: '鎴愬搧',
+          }
+          let obj2={
+            name: '鍗婃垚鍝�',
+          }
+          treeOptions.push(obj)
+          treeOptions.push(obj2)
+        }
+        if(treeOptions.length===1){
+          if(treeOptions[0].name==='鎴愬搧'){
+            treeOptions.push({
+            name: '鍗婃垚鍝�',
+          })
+          }
+          if(treeOptions[0].name==='鍗婃垚鍝�'){
+            treeOptions.push({
+            name: '鎴愬搧',
+          })
+          }
+        }
         this.replaceProp(treeOptions)
         this.formTypeOptions=treeOptions
         this.restaurants=this.loadFatherType()

--
Gitblit v1.9.3