|
@@ -77,7 +77,7 @@ const getJump = (url: string, name: string) => {
|
|
|
.finally(() => { });
|
|
|
}
|
|
|
} else if (url == '/test') {
|
|
|
- if (import.meta.env.DEV) {
|
|
|
+ if (import.meta.env.APP_ENV != 'pro') {
|
|
|
proxy?.$modal.msgSuccess('测试环境免密进入');
|
|
|
router.push({ path: url });
|
|
|
} else {
|
|
@@ -107,22 +107,23 @@ const getJump = (url: string, name: string) => {
|
|
|
.finally(() => { });
|
|
|
} else if (url == '/game') {
|
|
|
// proxy?.$modal.msgWarning('暂不开放使用,敬请期待!');
|
|
|
- proxy?.$modal
|
|
|
- .prompt('请输入密码')
|
|
|
- .then((e: any) => {
|
|
|
- if (e.action == 'confirm' && e.value == 'trops') {
|
|
|
- router.push({ path: url });
|
|
|
- }
|
|
|
- })
|
|
|
- .finally(() => { });
|
|
|
+ // proxy?.$modal
|
|
|
+ // .prompt('请输入密码')
|
|
|
+ // .then((e: any) => {
|
|
|
+ // if (e.action == 'confirm' && e.value == 'trops') {
|
|
|
+ // router.push({ path: url });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .finally(() => { });
|
|
|
|
|
|
// router.push({ path: url });
|
|
|
- // if (import.meta.env.DEV) {
|
|
|
- // proxy?.$modal.msgSuccess('测试环境直接进入');
|
|
|
- // router.push({ path: url });
|
|
|
- // } else {
|
|
|
- // proxy?.$modal.msgWarning('暂不开放使用,敬请期待!');
|
|
|
- // }
|
|
|
+
|
|
|
+ if (import.meta.env.APP_ENV != 'pro') {
|
|
|
+ proxy?.$modal.msgSuccess('测试环境直接进入');
|
|
|
+ router.push({ path: url });
|
|
|
+ } else {
|
|
|
+ proxy?.$modal.msgWarning('暂不开放使用,敬请期待!');
|
|
|
+ }
|
|
|
} else if (url == '/query') {
|
|
|
getCheckGrades()
|
|
|
|