Преглед на файлове

请先维护症状模块

liucf преди 5 години
родител
ревизия
0982187a20
променени са 3 файла, в които са добавени 9 реда и са изтрити 3 реда
  1. 1 1
      build/webpack.dev.conf.js
  2. 2 1
      src/common/OptionInp.vue
  3. 6 1
      src/components/PathInfo.vue

+ 1 - 1
build/webpack.dev.conf.js

@@ -34,7 +34,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
     compress: true,
     // host: HOST || config.dev.host,
     // host: '192.168.3.6',
-    host: '192.168.1.103',
+    host: '192.168.1.106',
     port: PORT || config.dev.port,
     open: config.dev.autoOpenBrowser,
     overlay: config.dev.errorOverlay

+ 2 - 1
src/common/OptionInp.vue

@@ -56,7 +56,8 @@ import { getExpStr,scrollToV,isIos} from '@utils/tools';
           this.$emit('handleSelec');
         }
         if(!isIos()){
-          scrollToV(e)
+          // scrollToV(e)
+          // document.activeElement.scrollIntoViewIfNeeded(true);
         } 
       }
     },

+ 6 - 1
src/components/PathInfo.vue

@@ -173,11 +173,16 @@
         })
       },
       getStart(){
+        const pathInfo = this.pathInfo;
+        if(JSON.stringify(pathInfo)=='{}'){
+          this.defaultWaring('网络异常请稍后重试');
+          return
+        }
         if(this.isReady){
           // this.$router.push({path:'/tab'})
           this.$router.replace({path:'/tab'})
         }else{
-          this.defaultWaring('网络异常请稍后重试')
+          this.defaultWaring('请先维护症状模块')
         }
       },
       defaultWaring(msg){