Wait for TEST and ENG Version

This commit is contained in:
naibo 2023-05-24 04:27:46 +08:00
parent 875b86d266
commit 76fe3a83b9
2 changed files with 60 additions and 61 deletions

View File

@ -130,7 +130,7 @@
class="btn btn-primary btn-lg" class="btn btn-primary btn-lg"
style="margin-top: 15px; width: 300px;height:60px;padding-top:12px;color:white">开始设计</a></p> style="margin-top: 15px; width: 300px;height:60px;padding-top:12px;color:white">开始设计</a></p>
<p> <p>
<a @click="step = 0" class="btn btn-outline-primary btn-lg"style="margin-top: 10px; width: 300px;height:45px;padding-top:5px">{{ $t('message.test2') }}</a> <a @click="step = 0" class="btn btn-outline-primary btn-lg"style="margin-top: 10px; width: 300px;height:45px;padding-top:5px">返回首页</a>
</p> </p>
</div> </div>

View File

@ -11,14 +11,14 @@ const i18n = VueI18n.createI18n({
}) })
function getUrlParam(name) { function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数 var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); if (r != null) return unescape(r[2]);
return ""; return "";
} }
var app = Vue.createApp({ var app = Vue.createApp({
data() { data() {
return { return {
init: true, init: true,
@ -70,6 +70,5 @@ const i18n = VueI18n.createI18n({
window.electronAPI.startInvoke(lang); window.electronAPI.startInvoke(lang);
} }
} }
}).use(i18n).mount('#app') }).use(i18n).mount('#app')
console.log(i18n.global.t('test')) console.log(i18n.global.t('test'))
document.title = i18n.global.t('test');