自动检测国际化
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
392ca13c16
commit
66260c5012
|
@ -530,11 +530,11 @@ async function VueInit() {
|
||||||
VueInit()
|
VueInit()
|
||||||
createVersionPolling({
|
createVersionPolling({
|
||||||
appETagKey: "__APP_ETAG__",
|
appETagKey: "__APP_ETAG__",
|
||||||
pollingInterval: 5 * 1000, // 单位为毫秒
|
pollingInterval: 5 * 60 * 1000, // 单位为毫秒
|
||||||
silent: process.env.NODE_ENV === false, // 开发环境下不检测
|
silent: process.env.NODE_ENV === false, // 开发环境下不检测
|
||||||
onUpdate: (self) => {
|
onUpdate: (self) => {
|
||||||
// 当检测到有新版本时,执行的回调函数,可以在这里提示用户刷新页面
|
// 当检测到有新版本时,执行的回调函数,可以在这里提示用户刷新页面
|
||||||
const result = confirm("页面有更新,点击确定刷新页面!");
|
const result = confirm(_vm.$t("versionPolling:tip"));
|
||||||
if (result) {
|
if (result) {
|
||||||
self.onRefresh();
|
self.onRefresh();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -122,7 +122,7 @@ export default {
|
||||||
EmailSMTPServerAddress: [{ required: true, message: this.$t('common:ruleMessage:specify') }],
|
EmailSMTPServerAddress: [{ required: true, message: this.$t('common:ruleMessage:specify') }],
|
||||||
EmailSMTPServerPort: [{ required: true, message: this.$t('common:ruleMessage:specify') },{
|
EmailSMTPServerPort: [{ required: true, message: this.$t('common:ruleMessage:specify') },{
|
||||||
type: "number",
|
type: "number",
|
||||||
min: 1,
|
min: 1,
|
||||||
max: 65535,
|
max: 65535,
|
||||||
message: this.$t("common:ruleMessage:portPattern"),
|
message: this.$t("common:ruleMessage:portPattern"),
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
|
|
Loading…
Reference in New Issue