فهرست منبع

修改跳转后台代码判断逻辑

ming 3 سال پیش
والد
کامیت
a88343515e
1فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 10 1
      src/views/index.vue

+ 10 - 1
src/views/index.vue

@@ -14,7 +14,7 @@
           <span>{{ route.meta.title }}</span>
         </router-link>
         <!-- <a
-          :href="'https://wx.ewoogi.com/manage/#/'"
+          :href="'http://101.133.214.75:13201/backStage'"
           class="router-left router_left1"
           >后台管理</a
         > -->
@@ -145,6 +145,15 @@ export default {
   },
   methods: {
     goAdmin(){
+
+      if (window.location.host.indexOf("localhost") != -1) {
+       
+               window.location.href = 'http://localhost:10000'
+            } else {
+                window.location.href = 'http://101.133.214.75:13201/backStage'
+            }
+
+
       ElMessage.warning('开发中....');
 
     },