Merge pull request 'xiaozy' (#4) from xiaozy into master

Reviewed-on: #4
master
肖志勇 2 years ago
commit 92bd816494
  1. 1
      src/main.js
  2. 4
      vue.config.js

@ -14,6 +14,7 @@ import vConsole from 'vconsole'
if (process.env.VUE_APP_ENV !== 'production') { if (process.env.VUE_APP_ENV !== 'production') {
new vConsole() new vConsole()
} }
// new vConsole()
Vue.use(PiniaVuePlugin) Vue.use(PiniaVuePlugin)
const pinia = createPinia() const pinia = createPinia()

@ -17,8 +17,8 @@ module.exports = defineConfig({
proxy: { proxy: {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.1.83:38080`, // target: `http://192.168.1.83:38080`,
// target: `https://www.xingoil.com/adminapi`, target: `https://www.xingoil.com/adminapi`,
target: `http://uat.xingoil.com/adminapi`, // target: `http://uat.xingoil.com/adminapi`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save