소스 검색

修改跳转和url地址

ming 3 년 전
부모
커밋
fb9b007e32
4개의 변경된 파일22개의 추가작업 그리고 17개의 파일을 삭제
  1. 1 1
      package.json
  2. 13 9
      public/static/config.js
  3. 4 3
      src/layout/vab-avatar/index.vue
  4. 4 4
      src/main.js

+ 1 - 1
package.json

@@ -69,4 +69,4 @@
             "git add"
         ]
     }
-}
+}

+ 13 - 9
public/static/config.js

@@ -3,15 +3,19 @@ var PLATFROM_CONFIG = {};
 // PLATFROM_CONFIG.baseUrl = "http://172.16.120.104:8010/" //杨强本地
 // PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/" //超博本地
 
-if (window.location.host.indexOf('localhost') != -1 || window.location.host.indexOf('pcdev.ewoogi.com') != -1) {
-    PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上--->测试
-    PLATFROM_CONFIG.images = "https://qhome.usky.cn/file/" //线上图片--->测试
-    PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径--->测试
-} else {
-    PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上--->正式
-    PLATFROM_CONFIG.images = "https://wx.ewoogi.com/file/" //线上图片--->正式
-    PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径--->正式
-}
+PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上--->测试
+PLATFROM_CONFIG.images = "https://qhome.usky.cn/file/" //线上图片--->测试
+PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径--->测试
+
+// if (window.location.host.indexOf('localhost') != -1 || window.location.host.indexOf('pcdev.ewoogi.com') != -1) {
+//     PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上--->测试
+//     PLATFROM_CONFIG.images = "https://qhome.usky.cn/file/" //线上图片--->测试
+//     PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径--->测试
+// } else {
+//     PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上--->正式
+//     PLATFROM_CONFIG.images = "https://wx.ewoogi.com/file/" //线上图片--->正式
+//     PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径--->正式
+// }
 
 // 本地json文件请求路径
 PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"

+ 4 - 3
src/layout/vab-avatar/index.vue

@@ -8,13 +8,13 @@
         font-size: 17px;
       "
     >
-      {{ time }}
+      <!-- {{ time }} -->
     </span>
     <a-dropdown>
       <span class="ant-dropdown-link">
         <!-- <a-avatar :src="avatar" /> -->
 
-        <img
+        <!-- <img
           src="https://i.gtimg.cn/club/item/face/img/2/15922_100.gif"
           alt=""
           style="
@@ -24,7 +24,7 @@
             line-height:32px;
             border-radius:50%;
           "
-        />
+        /> -->
         {{ username }}
         <DownOutlined />
       </span>
@@ -94,6 +94,7 @@ export default {
 <style lang="less">
 .vab-avatar {
   .ant-dropdown-link {
+    font-size:16px;
     display: block;
     min-height: @vab-header-height;
     cursor: pointer;

+ 4 - 4
src/main.js

@@ -60,11 +60,11 @@ router.beforeEach((to) => {
     }
     if (to.path == '/home') {
         if (window.location.host.indexOf('localhost') != -1) {
-            window.location.href = "http://localhost:8081/vuefiv#/home";
-        } else if (window.location.host.indexOf('pcdev.ewoogi.com') != -1) {
-            window.location.href = "https://pcdev.ewoogi.com/vuefiv#/home";
+            window.location.href = "http://localhost:8080/#/home";
+            // } else if (window.location.host.indexOf('pcdev.ewoogi.com') != -1) {
+            //     window.location.href = "https://pcdev.ewoogi.com/vuefiv#/home";
         } else {
-            window.location.href = "https://wx.ewoogi.com/panel/#/home";
+            window.location.href = "http://101.133.214.75:13201/";
         }
     }
 })