zhangwencui
2026-03-04 ac1218810d89c8daba0e8a3b516c3164b7ef0b2a
src/pages_template/pages/login/index2.vue
@@ -199,9 +199,16 @@
  // 登录成功后,处理函数
  const loginSuccess = result => {
    // 设置用户信息
    useUserStore()
    const userStore = useUserStore();
    userStore
      .getInfo()
      .then(res => {
        // 获取路由权限
        userStore.getRouters().then(() => {
          console.log("路由权限获取成功");
        }).catch(error => {
          console.error("获取路由权限失败:", error);
        });
        // 登录成功后,将客户端推送标识发送到服务器
        sendClientIdToServer();
        tab.reLaunch("/pages/index");