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

feat:适配内网新地址,修改yarn镜像源。

zhangyi преди 1 година
родител
ревизия
bcdf9d71ac
променени са 6 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 2 2
      .env
  2. 1 1
      Dockerfile
  3. 1 1
      src/App.vue
  4. 1 1
      src/components/Tutorial.vue
  5. 1 1
      src/store/modules/workspace.ts
  6. 1 1
      src/views/Project/Invite.vue

+ 2 - 2
.env

@@ -1,2 +1,2 @@
-VUE_APP_PORTAL_HOST='p.internal-paas.seec.seecoder.cn'
-VUE_APP_API_URL = '/api'
+VUE_APP_PORTAL_HOST='p-nju.seec.seecoder.cn'
+VUE_APP_API_URL = '/api'

+ 1 - 1
Dockerfile

@@ -1,6 +1,6 @@
 FROM node:16 as builder
 FROM node:16 as builder
 WORKDIR /code
 WORKDIR /code
-RUN yarn config set registry https://registry.npm.taobao.org/
+RUN yarn config set registry https://registry.npmmirror.com
 ADD package.json /code
 ADD package.json /code
 ADD yarn.lock /code
 ADD yarn.lock /code
 RUN yarn install
 RUN yarn install

+ 1 - 1
src/App.vue

@@ -23,7 +23,7 @@ export default defineComponent({
     const store = useStore();
     const store = useStore();
 
 
     // 调试输出vuex信息
     // 调试输出vuex信息
-    if (document.location.host !== 'devcloud.seec.seecoder.cn') {
+    if (document.location.host !== 'devcloud-nju.seec.seecoder.cn') {
       console.log(store.state);
       console.log(store.state);
     }
     }
 
 

+ 1 - 1
src/components/Tutorial.vue

@@ -189,7 +189,7 @@ export default {
           },
           },
           {
           {
             // eslint-disable-next-line max-len
             // eslint-disable-next-line max-len
-            id: 'testCreateUrl', popUpId: 'testCreateUrl', description: '此处填写接口测试使用的URL, 触发测试时会想此处发送请求', action: '输入"http://backend.todolist-backend-877.devcloud.seec.seecoder.cn/hello"', type: 'input', value: 'http://backend.todolist-backend-877.devcloud.seec.seecoder.cn/hello',
+            id: 'testCreateUrl', popUpId: 'testCreateUrl', description: '此处填写接口测试使用的URL, 触发测试时会想此处发送请求', action: '输入"http://backend.todolist-backend-877.devcloud-nju.seec.seecoder.cn/hello"', type: 'input', value: 'http://backend.todolist-backend-877.devcloud.seec.seecoder.cn/hello',
           },
           },
           {
           {
             id: 'testCreateMethod', popUpId: 'testCreateMethod', description: '此处填写接口使用的Http方法类型', action: '选择GET', type: 'select', value: 'GET',
             id: 'testCreateMethod', popUpId: 'testCreateMethod', description: '此处填写接口使用的Http方法类型', action: '选择GET', type: 'select', value: 'GET',

+ 1 - 1
src/store/modules/workspace.ts

@@ -24,7 +24,7 @@ const INIT = Object.keys(FROM_LOCAL_STORAGE).length > 0 ? FROM_LOCAL_STORAGE : D
 
 
 const convert = (url: string) => {
 const convert = (url: string) => {
   const u = new URL(url);
   const u = new URL(url);
-  u.host = 'gitlab.internal-paas.seec.seecoder.cn';
+  u.host = 'gitlab-nju.seec.seecoder.cn';
   return u.href;
   return u.href;
 };
 };
 
 

+ 1 - 1
src/views/Project/Invite.vue

@@ -99,7 +99,7 @@ export default {
     },
     },
     convert(url) {
     convert(url) {
       const u = new URL(url);
       const u = new URL(url);
-      u.host = 'gitlab.internal-paas.seec.seecoder.cn';
+      u.host = 'gitlab-nju.seec.seecoder.cn';
       return u.href;
       return u.href;
     },
     },
     handleChange(projectId) {
     handleChange(projectId) {