chore(projects): release v1.3.14

* optimize(projects): 🎨 optimize tab deletion logic.

* optimize(projects): 🎨 remove redundant authStore declaration in resetStore function

* chore(projects): release v1.3.14
This commit is contained in:
一寸灰
2025-08-25 20:21:58 +08:00
committed by GitHub
parent 8abee1ba91
commit 3e02090c08
14 changed files with 40 additions and 13 deletions

View File

@@ -1,6 +1,31 @@
# Changelog
## [v1.3.14](https://github.com/skyfeiz/soybean-admin-element-plus/compare/v1.3.13...v1.3.14) (2025-08-25)
###    🚀 Features
- **projects**: ✨ sync global search button toggle. &nbsp;-&nbsp; by **一寸灰** [<samp>(8abee)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/8abee1b)
### &nbsp;&nbsp;&nbsp;🛠 Optimizations
- **projects**:
- 🎨 optimize tab deletion logic. &nbsp;-&nbsp; by **skyfeiz** [<samp>(0313c)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/0313c07)
- 🎨 remove redundant authStore declaration in resetStore function &nbsp;-&nbsp; by **skyfeiz** [<samp>(e958f)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/e958f75)
### &nbsp;&nbsp;&nbsp;💅 Refactors
- **hooks**: ♻️ sync refactor useCountDown hook. &nbsp;-&nbsp; by **一寸灰** [<samp>(6ae21)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/6ae214c)
### &nbsp;&nbsp;&nbsp;🏡 Chore
- **deps**: ⬆️ update deps. &nbsp;-&nbsp; by **skyfeiz** [<samp>(c675c)</samp>](https://github.com/skyfeiz/soybean-admin-element-plus/commit/c675c41)
### &nbsp;&nbsp;&nbsp;❤️ Contributors
[skyfeiz](mailto:webzhangfei@163.com),&nbsp;[一寸灰](mailto:webyicunhui@outlook.com)
## [v1.3.13](https://github.com/skyfeiz/soybean-admin-element-plus/compare/v1.3.12...v1.3.13) (2025-08-18)
### &nbsp;&nbsp;&nbsp;🚀 Features

View File

@@ -1,7 +1,7 @@
{
"name": "@sa/elp",
"type": "module",
"version": "1.3.13",
"version": "1.3.14",
"description": "A fresh and elegant admin template, based on Vue3、Vite6、TypeScript、ElementPlus and UnoCSS. 一个基于Vue3、Vite6、TypeScript、ElementPlus and UnoCSS的清新优雅的中后台模版。",
"author": {
"name": "Soybean",

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/alova",
"version": "1.3.13",
"version": "1.3.14",
"exports": {
".": "./src/index.ts",
"./fetch": "./src/fetch.ts",

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/axios",
"version": "1.3.13",
"version": "1.3.14",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/color",
"version": "1.3.13",
"version": "1.3.14",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/hooks",
"version": "1.3.13",
"version": "1.3.14",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/materials",
"version": "1.3.13",
"version": "1.3.14",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/fetch",
"version": "1.3.13",
"version": "1.3.14",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/scripts",
"version": "1.3.13",
"version": "1.3.14",
"bin": {
"sa": "./bin.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/uno-preset",
"version": "1.3.13",
"version": "1.3.14",
"exports": {
".": "./src/index.ts"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@sa/utils",
"version": "1.3.13",
"version": "1.3.14",
"exports": {
".": "./src/index.ts"
},

View File

@@ -13,6 +13,7 @@ import { clearAuthStorage, getToken } from './shared';
export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
const route = useRoute();
const authStore = useAuthStore();
const routeStore = useRouteStore();
const tabStore = useTabStore();
const { toLogin, redirectFromLogin } = useRouterPush(false);
@@ -39,8 +40,6 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
/** Reset auth store */
async function resetStore() {
const authStore = useAuthStore();
recordUserId();
clearAuthStorage();

View File

@@ -100,7 +100,9 @@ export const useTabStore = defineStore(SetupStoreId.Tab, () => {
const removedTabRouteKey = tabs.value[removeTabIndex].routeKey;
const isRemoveActiveTab = activeTabId.value === tabId;
const nextTab = tabs.value[removeTabIndex + 1] || homeTab.value;
// if remove the last tab, then switch to the second last tab
const nextTab = tabs.value[removeTabIndex + 1] || tabs.value[removeTabIndex - 1] || homeTab.value;
// remove tab
tabs.value.splice(removeTabIndex, 1);

View File

@@ -50,6 +50,7 @@ declare module 'vue' {
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSegmented: typeof import('element-plus/es')['ElSegmented']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSpace: typeof import('element-plus/es')['ElSpace']
ElStatistic: typeof import('element-plus/es')['ElStatistic']