Browse Source

dev测试路径

dev
lihuilin 3 weeks ago
parent
commit
8b3f3b7d94
  1. 2
      activitylink/src/router/index.js
  2. 4
      activitylink/vite.config.js

2
activitylink/src/router/index.js

@ -73,7 +73,7 @@ const routes = [
] ]
// 创建路由实例 // 创建路由实例
const router = createRouter({ const router = createRouter({
history: createWebHistory('/prodBack/'),
history: createWebHistory('/testBack/'),
routes routes
}) })
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {

4
activitylink/vite.config.js

@ -14,9 +14,9 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
'/api': { '/api': {
target: 'https://hwjb.homilychart.com/prodApi/',
// https://dbqb.nfdxy.net/devLotApi/
target: 'https://dbqb.nfdxy.net/devLotApi/',
// http://localhost:12699/ // http://localhost:12699/
// https://hwjb.homilychart.com/prodApi/
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '') rewrite: (path) => path.replace(/^\/api/, '')
}, },

Loading…
Cancel
Save