Explorar el Código

对没给到的场景,提示“敬请期待”

任一存 hace 2 años
padre
commit
e4b701dab5
Se han modificado 2 ficheros con 22 adiciones y 10 borrados
  1. 5 0
      src/App.vue
  2. 17 10
      src/views/gui/EntryList.vue

+ 5 - 0
src/App.vue

@@ -149,4 +149,9 @@ export default {
 .element-ui-loading {
   z-index: 9999 !important;
 }
+
+.el-message {
+  z-index: 99999 !important;
+  min-width: initial;
+}
 </style>

+ 17 - 10
src/views/gui/EntryList.vue

@@ -72,17 +72,24 @@ export default {
       this.$emit('close')
     },
     onClickEntry(entry) {
-      if (entry.sceneCode) {
-        this.$router.push({
-          name: 'Home',
-          query: {
-            ...this.$route.query,
-            ...{
-              m: entry.sceneCode,
+      if (entry.sceneCode !== undefined) {
+        if (entry.sceneCode) {
+          this.$router.push({
+            name: 'Home',
+            query: {
+              ...this.$route.query,
+              ...{
+                m: entry.sceneCode,
+              }
             }
-          }
-        })
-        location.reload()
+          })
+          location.reload()
+        } else {
+          this.$message({
+            message: '敬请期待!',
+            type: 'warning',
+          })
+        }
       } else {
         this.$router.push({
           name: entry.routeName