|
|
|
@@ -168,7 +168,7 @@ export default { |
|
|
|
const list = window.location.href.split('/'); |
|
|
|
list.pop(); |
|
|
|
list.push('create_local_model_2'); |
|
|
|
window.location.href = list.join('/') + '?type=0&name=' + this.state.name + '&id=' + res.id; |
|
|
|
window.location.href = list.join('/') + '?type=0&name=' + encodeURIComponent(this.state.name) + '&id=' + res.id; |
|
|
|
} if (res && res.code == '-1') { |
|
|
|
this.$message({ |
|
|
|
type: 'error', |
|
|
|
@@ -194,7 +194,7 @@ export default { |
|
|
|
const list = window.location.href.split('/'); |
|
|
|
list.pop(); |
|
|
|
list.push('show_model_info'); |
|
|
|
window.location.href = list.join('/') + '?name=' + this.state.name; |
|
|
|
window.location.href = list.join('/') + '?name=' + encodeURIComponent(this.state.name); |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
|