Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Nov 21, 2022
1 parent a8c59c5 commit c5b107e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"path": "^0.12.7",
"pinia": "^2.0.23",
"pinia": "^2.0.24",
"qrcode": "^1.5.1",
"qs": "^6.11.0",
"resize-observer-polyfill": "^1.5.1",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/layout/components/notice/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import NoticeList from "./noticeList.vue";
import { Tabs, TabPane } from "@pureadmin/components";
const dropdownDom = ref();
const activeKey = ref(noticesData[2].key);
const activeKey = ref(noticesData[0].key);
const notices = ref(noticesData);
const noticesNum = ref(0);
Expand Down Expand Up @@ -33,7 +34,7 @@ function tabClick() {
centered
class="dropdown-tabs"
:tabBarStyle="{ marginLeft: notices?.length > 4 ? '8px' : '0' }"
v-model="activeKey"
v-model:activeKey="activeKey"
@tabClick="tabClick"
>
<template v-for="item in notices" :key="item.key">
Expand Down
2 changes: 1 addition & 1 deletion src/utils/sso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { removeToken, setToken, type DataInfo } from "./auth";
import { subBefore, getQueryMap } from "@pureadmin/utils";

/**
* 简版前端单点登录,根据实际业务自行编写
* 简版前端单点登录,根据实际业务自行编写,平台启动后本地可以跳后面这个链接进行测试 http://localhost:8848/#/permission/page/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin
* 划重点:
* 判断是否为单点登录,不为则直接返回不再进行任何逻辑处理,下面是单点登录后的逻辑处理
* 1.清空本地旧信息;
Expand Down

0 comments on commit c5b107e

Please sign in to comment.