scorpio 2 năm trước cách đây
mục cha
commit
e19cfb8920
2 tập tin đã thay đổi với 7 bổ sung5 xóa
  1. 5 3
      src/App.vue
  2. 2 2
      vite.config.js

+ 5 - 3
src/App.vue

@@ -7,9 +7,10 @@
       <div
         class="wrapper mt-20"
         v-if="
-          $route.meta.layout === 'empty' &&
-          $route.name !== 'login' &&
-          $route.meta.show === true
+          ($route.meta.layout === 'empty' &&
+            $route.name !== 'login' &&
+            $route.meta.show === true) ||
+          this.$route.meta.show === undefined
         "
       >
         <tips />
@@ -54,6 +55,7 @@ export default {
   },
   mounted() {
     window.addEventListener('scroll', this.menu)
+    console.log(this.$route.meta.show)
   },
   methods: {
     router,

+ 2 - 2
vite.config.js

@@ -57,8 +57,8 @@ export default defineConfig({
     proxy: {
       '/api': {
         // 正式环境地址
-        target: 'https://dev.wutongresearch.club/api',
-        // target: 'https://prod.wutongshucloud.com/api',
+        // target: 'https://dev.wutongresearch.club/api',
+        target: 'https://prod.wutongshucloud.com/api',
         // target: 'http://192.168.31.181:8110',
         changeOrigin: true,
         rewrite: path => path.replace(/^\/api/, '')