-
diff --git a/frontend/src/views/module_system/auth/index copy.vue b/frontend/src/views/module_system/auth/index copy.vue
new file mode 100644
index 00000000..c01cd8d4
--- /dev/null
+++ b/frontend/src/views/module_system/auth/index copy.vue
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/module_system/auth/index.vue b/frontend/src/views/module_system/auth/index.vue
index c01cd8d4..6a91201d 100644
--- a/frontend/src/views/module_system/auth/index.vue
+++ b/frontend/src/views/module_system/auth/index.vue
@@ -1,14 +1,7 @@
-
+
-
+
@@ -21,56 +14,82 @@
-
-
-
@@ -101,62 +120,464 @@ const loginPreset = reactive<{ username: string; password: string }>({
password: "123456",
});
+let notificationInstance: ReturnType
| null = null;
+
+const showVoteNotification = () => {
+ notificationInstance = ElNotification({
+ title: "⭐ FastapiAdmin 完全开源 · 期待您的 Star 支持 🙏",
+ message: `项目持续迭代中,若对您有所帮助,欢迎点亮 Star 支持!
+
Github仓库 →
+
Gitee仓库 →`,
+ type: "success",
+ position: "bottom-left",
+ duration: 0,
+ dangerouslyUseHTMLString: true,
+ });
+};
+
onMounted(() => {
+ setTimeout(showVoteNotification, 500);
configStore.getConfig();
});
+
+onBeforeUnmount(() => {
+ if (notificationInstance) {
+ notificationInstance.close();
+ notificationInstance = null;
+ }
+});
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index 14bcc8c9..9275d89b 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -28,6 +28,6 @@
"types": ["node", "vite/client", "element-plus/global"]
},
- "include": ["src/**/*.ts", "src/**/*.vue", "vite.config.ts", "eslint.config.ts", "uno.config.ts"],
+ "include": ["src/types/**/*.d.ts", "src/**/*.ts", "src/**/*.vue", "vite.config.ts", "eslint.config.ts", "uno.config.ts"],
"exclude": ["node_modules", "dist"]
}
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index ed425911..be56435f 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -1,5 +1,5 @@
import vue from "@vitejs/plugin-vue";
-import { type ConfigEnv, loadEnv, defineConfig } from "vite";
+import { type ConfigEnv, type UserConfig, loadEnv, defineConfig } from "vite";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
@@ -18,7 +18,7 @@ const __APP_INFO__ = {
const pathSrc = resolve(__dirname, "src");
// Vite配置 https://cn.vitejs.dev/config
-export default defineConfig(({ mode }: ConfigEnv) => {
+export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
const env = loadEnv(mode, process.cwd());
const isProduction = mode === "production";