chore(app): 移除更新提示功能

This commit is contained in:
dubai
2026-01-11 14:11:21 +08:00
parent 1d78fec144
commit d9d3118879
2 changed files with 7 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import { App, ConfigProvider, theme } from 'ant-design-vue';
import { antdLocale } from '#/locales';
import { useUploadTip } from './upload-tip';
// import { useUploadTip } from './upload-tip';
defineOptions({ name: 'App' });
@@ -31,7 +31,7 @@ const tokenTheme = computed(() => {
};
});
useUploadTip();
// useUploadTip();
</script>
<template>

View File

@@ -4,16 +4,18 @@ import { useLocalStorage } from '@vueuse/core';
import { Modal } from 'ant-design-vue';
export function useUploadTip() {
const readTip = useLocalStorage<boolean>('__upload_tip_read_5.4.0', false);
onMounted(() => {
if (readTip.value || !import.meta.env.DEV) {
// if (readTip.value || !import.meta.env.DEV) {
// return;
// }
if (true) {
return;
}
const modalInstance = Modal.info({
title: '提示',
centered: true,
content:
'如果你的版本是从低版本升级到后端>5.4.0, 记得执行升级sql, 否则跳转页面(如oss 代码生成配置)等会404',
'升级提示-自行决定是否删除此组件',
okButtonProps: { disabled: true },
onOk() {
modalInstance.destroy();