desc: 调整请求位置

This commit is contained in:
zyy 2019-09-04 15:06:26 +08:00
parent 949d51923e
commit 6b9047c919
2 changed files with 13 additions and 3 deletions

View File

@ -3,8 +3,8 @@ export function getBaseUrl() {
let BASE_API; let BASE_API;
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud'; // BASE_API = 'https://joylink.club/jlcloud';
BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪 BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.4:9000' // 琰培 // BASE_API = 'http://192.168.3.4:9000' // 琰培
} else { } else {

View File

@ -96,7 +96,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.initLoad();
}, },
methods: { methods: {
async initLoad() { async initLoad() {
@ -107,10 +107,20 @@ export default {
}, },
doShow() { doShow() {
this.dialogShow = true; this.dialogShow = true;
this.initLoad();
}, },
doClose() { doClose() {
this.loading = false; this.loading = false;
this.dialogShow = false; this.dialogShow = false;
this.newModel.name = '';
this.pullModel.templateId = '';
this.pullModel.name = '';
if (this.$refs.form) {
this.$refs.form.resetFields();
}
if (this.$refs.pullForm) {
this.$refs.pullForm.resetFields();
}
}, },
handleCommit() { handleCommit() {
if (this.activeTab === 'first') { if (this.activeTab === 'first') {