docs: annotate all shared frontend modules in Chinese
This commit is contained in:
1 parent
2be21c1c62
commit
408f8e5c98
55 files changed
+349
No files matched your search
@@ -1,3 +1,4 @@
|
||||
/** 应用启动加载公共配置;已有登录态时并行预取菜单和账户概览,单项失败不阻断启动。 */
|
||||
import { defineNuxtPlugin } from "#app";
|
||||
import { useAuth, useApi } from "~/lib/auth.js";
|
||||
import { t as useSiteConfig } from "~/lib/useSiteConfig.js";
|
||||
@@ -9,6 +10,7 @@ export default defineNuxtPlugin({
|
||||
async setup() {
|
||||
const auth = useAuth();
|
||||
const tasks = [useSiteConfig().load()];
|
||||
// 旧平台入口的 JWT 尚待专页核验,不能在此提前当成可信会话加载私有资料。
|
||||
if (auth.isLoggedIn && window.location.pathname !== "/home.htm") {
|
||||
tasks.push(useNavigation(auth, useApi()).load(), auth.fetchOverview());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user