chore(app): 移除更新提示功能
This commit is contained in:
@@ -8,7 +8,7 @@ import { App, ConfigProvider, theme } from 'ant-design-vue';
|
|||||||
|
|
||||||
import { antdLocale } from '#/locales';
|
import { antdLocale } from '#/locales';
|
||||||
|
|
||||||
import { useUploadTip } from './upload-tip';
|
// import { useUploadTip } from './upload-tip';
|
||||||
|
|
||||||
defineOptions({ name: 'App' });
|
defineOptions({ name: 'App' });
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ const tokenTheme = computed(() => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
useUploadTip();
|
// useUploadTip();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -4,16 +4,18 @@ import { useLocalStorage } from '@vueuse/core';
|
|||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
|
|
||||||
export function useUploadTip() {
|
export function useUploadTip() {
|
||||||
const readTip = useLocalStorage<boolean>('__upload_tip_read_5.4.0', false);
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (readTip.value || !import.meta.env.DEV) {
|
// if (readTip.value || !import.meta.env.DEV) {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
if (true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const modalInstance = Modal.info({
|
const modalInstance = Modal.info({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
centered: true,
|
centered: true,
|
||||||
content:
|
content:
|
||||||
'如果你的版本是从低版本升级到后端>5.4.0, 记得执行升级sql, 否则跳转页面(如oss 代码生成配置)等会404',
|
'升级提示-自行决定是否删除此组件',
|
||||||
okButtonProps: { disabled: true },
|
okButtonProps: { disabled: true },
|
||||||
onOk() {
|
onOk() {
|
||||||
modalInstance.destroy();
|
modalInstance.destroy();
|
||||||
|
|||||||
Reference in New Issue
Block a user