pull/19/head
lukeyan 1 year ago
parent 133bd0b860
commit 3098e0d473

@ -4,8 +4,8 @@ import vm from "../main";
import { getToken } from '@/utils/auth'
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
const request = axios.create({
//baseURL: 'http://172.18.113.50:8080/zhapi',
baseURL: `http://${window.location.host}/zhapi`,
baseURL: 'http://172.18.113.50:8080/zhapi',
//baseURL: `http://${window.location.host}/zhapi`,
timeout: 50000,
headers: { 'content-type': 'application/json' },
})

@ -306,7 +306,6 @@ export default {
this.visible = true;
if (num === 1) {
this.dialogTitle = "新建";
this.form = {};
} else if (num === 2) {
this.dialogTitle = "查看档案";
} else if (num === 3) {
@ -314,6 +313,7 @@ export default {
console.log("item", item);
this.imageUrl = item.picUrl;
this.form = Object.assign(this.form, item);
console.log('form123',this.form);
}
},
getCheck() {
@ -402,7 +402,6 @@ export default {
if (res.code === 200) {
this.$message.success("编辑成功");
this.visible = false;
this.form = {};
} else {
this.$message.warning("编辑失败");
}

Loading…
Cancel
Save