update vuecli proxy

This commit is contained in:
2022-09-19 16:30:50 +08:00
parent 10e454eb2a
commit e532989ddf
12 changed files with 47 additions and 17 deletions

View File

@@ -22,7 +22,8 @@ export default {
methods: {
init() {
this.visible = true
this.url = `${window.SITE_CONFIG['apiURL']}/sys/oss/upload?token=${Cookies.get('token')}`
// this.url = `${window.SITE_CONFIG['apiURL']}/sys/oss/upload?token=${Cookies.get('token')}`
this.url = (process.env.NODE_ENV === 'production' ? '/api' : '/yd-monitor') + `/sys/oss/upload?token=${Cookies.get('token')}`
this.num = 0
this.fileList = []
},