提交 6eb72b5e 编写于 作者: zhangzhiwei's avatar zhangzhiwei

.

上级 2197368e
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
} }
} }
console.log(window.location.port,'window.location.port '); console.log(window.location.port,'window.location.port ');
uni.setStorageSync('subdomain',(window.location.port === '3000'||window.location.host === 'etaoh5dz-pre.edstao.com')?'jinyanxia':'jinyanxia') uni.setStorageSync('subdomain',(window.location.port === '3000'||window.location.host === 'etaoh5dz-pre.edstao.com')?'fl':'fl')
}); });
onShow(() => { onShow(() => {
console.log("App Show"); console.log("App Show");
......
...@@ -8,12 +8,12 @@ export default defineConfig({ ...@@ -8,12 +8,12 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
'^/pre': { '^/pre': {
target: 'https://wxapplets-jyx.edstao.com', target: 'https://wxapplets-fl.edstao.com',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/pre/, '') rewrite: (path) => path.replace(/^\/pre/, '')
}, },
'^/api': { '^/api': {
target: 'https://wxapplets-jyx.edstao.com', target: 'https://wxapplets-fl.edstao.com',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/pre/, '') rewrite: (path) => path.replace(/^\/pre/, '')
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册