国际化修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
551cdf0ed3
commit
a2b2fd65af
11
src/App.vue
11
src/App.vue
|
@ -219,12 +219,14 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.$confirm('确定修改当前页面国际化内容?').then(() => {
|
this.$confirm('确定修改当前页面国际化内容?')
|
||||||
|
.then(() => {
|
||||||
batchAddOrUpdateFrontInternationalization(this.tableData).then(
|
batchAddOrUpdateFrontInternationalization(this.tableData).then(
|
||||||
async (res) => {
|
async (res) => {
|
||||||
var zhMessages = {},
|
var zhMessages = {},
|
||||||
enMessages = {}
|
enMessages = {}
|
||||||
var Internationalization = await getFrontInternationalizationList()
|
var Internationalization =
|
||||||
|
await getFrontInternationalizationList()
|
||||||
Vue.prototype.$tl = Internationalization.Result
|
Vue.prototype.$tl = Internationalization.Result
|
||||||
this.tableData.forEach((v) => {
|
this.tableData.forEach((v) => {
|
||||||
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN
|
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN
|
||||||
|
@ -242,6 +244,9 @@ export default {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
openI18n(ARRAY) {
|
openI18n(ARRAY) {
|
||||||
this.tableData = []
|
this.tableData = []
|
||||||
|
@ -268,6 +273,7 @@ export default {
|
||||||
ValueCN: item.ValueCN,
|
ValueCN: item.ValueCN,
|
||||||
State: item.State,
|
State: item.State,
|
||||||
Version: item.Version,
|
Version: item.Version,
|
||||||
|
InternationalizationType: item.InternationalizationType,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.tableData = Object.assign([], tableData)
|
this.tableData = Object.assign([], tableData)
|
||||||
|
@ -300,6 +306,7 @@ export default {
|
||||||
ValueCN: null,
|
ValueCN: null,
|
||||||
State: 0,
|
State: 0,
|
||||||
Version: this.$version.Version,
|
Version: this.$version.Version,
|
||||||
|
InternationalizationType: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -33,7 +33,7 @@ export default {
|
||||||
let browserType = this.getExplore();
|
let browserType = this.getExplore();
|
||||||
let type = browserType.split(": ")[0];
|
let type = browserType.split(": ")[0];
|
||||||
let No = browserType.split(": ")[1].split(".")[0];
|
let No = browserType.split(": ")[1].split(".")[0];
|
||||||
console.log(type, No);
|
// console.log(type, No);
|
||||||
if (type !== "Chrome" && type !== "Edge") {
|
if (type !== "Chrome" && type !== "Edge") {
|
||||||
this.tip = this.$t("browser:tip:changeBorwser");
|
this.tip = this.$t("browser:tip:changeBorwser");
|
||||||
return (this.visible = true);
|
return (this.visible = true);
|
||||||
|
|
Loading…
Reference in New Issue