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 |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/src/components/view/standard.vue b/src/components/view/standard.vue
index 9f461ba..6c12b0b 100644
--- a/src/components/view/standard.vue
+++ b/src/components/view/standard.vue
@@ -982,7 +982,9 @@
         return this.verdata[0]
       })
       this.character=v
-      this.version2="v"+v
+      if(this.character != undefined){
+        this.version2="v"+v
+      }
       this.selectAll()
     },
     //鍙充晶鏁版嵁
@@ -1165,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