feat(env) add trial msg
This commit is contained in:
parent
28eb1cedbb
commit
d0325e5b44
|
@ -10,7 +10,7 @@ import type {ControlMsg, ServerMsg} from "@/api";
|
|||
import {ControlEvent, ControlMsgType} from "@/api";
|
||||
import {routeCtrlMsg, routeModuleServerMsg} from "@/router/msgRouter";
|
||||
import {globalNotify} from "@/composables/notification";
|
||||
import {getTrialDate, isDevMode, isOTAEnabled, isTrialMode} from "@/composables/buildMode";
|
||||
import {getTrialDate, getTrialMsg, isDevMode, isOTAEnabled, isTrialMode} from "@/composables/buildMode";
|
||||
import {useSystemModule} from "@/composables/useSystemModule";
|
||||
import {useDataFlowModule} from "@/composables/useDataFlowModule";
|
||||
import {useUpdateModule} from "@/composables/useUpdateModule";
|
||||
|
@ -61,7 +61,7 @@ onMounted(() => {
|
|||
}
|
||||
|
||||
if (isTrialMode()) {
|
||||
ElMessageBox.alert('感谢您试用串口透传固件,如果觉得好用,可购买标准版支持我,谢谢!', getTrialDate(), {
|
||||
ElMessageBox.alert(getTrialMsg(), getTrialDate(), {
|
||||
confirmButtonText: '好的',
|
||||
});
|
||||
}
|
||||
|
|
|
@ -13,3 +13,7 @@ export function isTrialMode() {
|
|||
export function getTrialDate() {
|
||||
return import.meta.env.VITE_TRIAL_DATE || "1970-01-01";
|
||||
}
|
||||
|
||||
export function getTrialMsg() {
|
||||
return import.meta.env.VITE_TRIAL_MSG || "感谢您试用允斯开放固件,若您喜欢,欢迎关注我的B站或者加入允斯群,新项目和更新都会在第一时间在这里发布. 使用愉快^_^";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue