pull/4/head
xiaozhiyong 2 years ago
parent 208a1f480f
commit d804c50583
  1. 5
      src/main.js
  2. 4
      vue.config.js

@ -11,9 +11,10 @@ import '@/assets/iconfont/iconfont.css'
import { createPinia, PiniaVuePlugin } from 'pinia'
import vConsole from 'vconsole'
if (process.env.VUE_APP_ENV !== 'production') {
// if (process.env.VUE_APP_ENV !== 'production') {
// new vConsole()
// }
new vConsole()
}
Vue.use(PiniaVuePlugin)
const pinia = createPinia()

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

Loading…
Cancel
Save