feat(web): 构建漂流瓶移动端 PWA
- 演示登录、内存令牌、单 Promise 刷新与路由守卫\n- 投瓶、捞瓶、首次回复、会话与实时聊天\n- 独立管理员登录与审核/举报工作台\n- Socket 认证续期、断线补齐与账号切换清理\n- PWA 离线壳、深海主题与移动端无障碍
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { createApp } from "vue";
|
||||
import { createPinia } from "pinia";
|
||||
import App from "./App.vue";
|
||||
import { createAppRouter } from "./router";
|
||||
import { useAuthStore } from "./stores/auth";
|
||||
import "./styles/main.css";
|
||||
const app = createApp(App),
|
||||
pinia = createPinia();
|
||||
app.use(pinia);
|
||||
const auth = useAuthStore(pinia);
|
||||
app.use(createAppRouter(auth));
|
||||
app.mount("#app");
|
||||
Reference in New Issue
Block a user