Commit be790c6c authored by 刘怀志's avatar 刘怀志

配置取值修改

parent 413ead29
......@@ -6,6 +6,6 @@ VUE_APP_TITLE = 视频资源整合与智能分析系统
ENV = 'production'
# 视频资源整合与智能分析系统/生产环境
VUE_APP_BASE_API = 'http://127.0.0.1:8083/video-prod-api'
VUE_APP_BASE_API = 'http://10.10.10.105:8083/video-prod-api'
# 图片地址
VUE_APP_IMG_API = 'http://127.0.0.1:8083/video-prod-api/profile/upload'
VUE_APP_IMG_API = 'http://10.10.10.105:8083/video-prod-api/profile/upload'
......@@ -43,7 +43,7 @@ export default {
methods: {
// 获取本地配置详情
getConfig() {
getBackup(this.userId).then(res => {
getBackup('1').then(res => {
this.form = { ...res.data }
})
},
......@@ -51,7 +51,7 @@ export default {
submitForm() {
this.$refs['form'].validate(valid => {
if (valid) {
this.form.userId = this.userId
this.form.id = '1'
updateBackup(this.form).then(response => {
this.$modal.msgSuccess('修改成功')
})
......
......@@ -112,7 +112,7 @@ export default {
methods: {
// 获取本地配置详情
getConfig() {
getVideo(this.userId).then(res => {
getVideo('1').then(res => {
this.form = { ...res.data }
})
},
......@@ -120,7 +120,7 @@ export default {
submitForm() {
this.$refs['form'].validate(valid => {
if (valid) {
this.form.userId = this.userId
this.form.id = '1'
updateVideo(this.form).then(response => {
this.$modal.msgSuccess('修改成功')
})
......
......@@ -35,7 +35,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://10.10.10.148:8083/video-prod-api`,
target: `http://10.10.10.148:8080`,
// target: `http://49.232.167.247:22020`,
changeOrigin: true,
pathRewrite: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment