diff --git a/src/common/axios.js b/src/common/axios.js index 6877fba7..8ccaf91b 100644 --- a/src/common/axios.js +++ b/src/common/axios.js @@ -19,7 +19,7 @@ instance.interceptors.request.use(config => { config.url = config.url.replace(/(app|auth|admin)\//, "api/") } else if (!/^App/.test(module) && module) { config.baseURL = `/${module}` - if (['xaxc', 'qxn', 'yyhd'].includes(module)) { + if (['xaxc', 'qxn', 'yyhd','tr'].includes(module)) { config.url = config.url.replace(/(app|auth|admin)\//, "api/") } } else config.baseURL = "/lan" diff --git a/src/manifest.json b/src/manifest.json index 36c3f78f..6b9c1c2f 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -106,6 +106,13 @@ "pathRewrite": { "^/yyhd": "/" } + }, + "/tr": { + "target": "http://192.168.1.87:12002/", + "changeOrigin": true, + "pathRewrite": { + "^/tr": "/" + } } } }, diff --git a/src/pages/login.vue b/src/pages/login.vue index 44a80e15..527c53d1 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -77,6 +77,8 @@ export default { module = 'xaxc' } else if (/\/project\/qianxinan\//.test(libPath)) { module = 'qxn' + } else if (/\/project\/tongren\//.test(libPath)) { + module = 'tr' } else if (/\/project\/beta\//.test(libPath)) { corpId = 'ww2a667717a70164f1' module = 'wangge' diff --git a/src/project/tongren/AppSignIn/AppSignIn.vue b/src/project/tongren/AppSignIn/AppSignIn.vue new file mode 100644 index 00000000..b7afdb2e --- /dev/null +++ b/src/project/tongren/AppSignIn/AppSignIn.vue @@ -0,0 +1,232 @@ + + + + + \ No newline at end of file diff --git a/src/project/tongren/AppSignIn/img/avatar.png b/src/project/tongren/AppSignIn/img/avatar.png new file mode 100644 index 00000000..5e276419 Binary files /dev/null and b/src/project/tongren/AppSignIn/img/avatar.png differ diff --git a/src/project/tongren/AppSignIn/img/bg.png b/src/project/tongren/AppSignIn/img/bg.png new file mode 100644 index 00000000..eefb6cc5 Binary files /dev/null and b/src/project/tongren/AppSignIn/img/bg.png differ