diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3913bdd..0c44771 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,41 @@
# Changelog
+## [v1.3.11](https://github.com/skyfeiz/soybean-admin-element-plus/compare/v1.3.10...v1.3.11) (2025-02-10)
+
+### 🚀 Features
+
+- **projects**: ✨ multi language buttons support hiding - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/44 [(312c0)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/312c0e2)
+
+### 🐞 Bug Fixes
+
+- **projects**:
+ - 🐛 fix login success notification. - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/45 [(c94c8)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/c94c845)
+ - 🐛 fix element-plus style conflicts - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/49 [(b8b7f)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/b8b7f4d)
+ - 🐛 fix update notifications - by **skyfeiz** [(ecbf1)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/ecbf1d1)
+
+### 🛠 Optimizations
+
+- **projects**: 🎨 fix warning Component name should always be multi-word - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/46 [(aceff)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/aceff34)
+
+### 🏡 Chore
+
+- **deps**: ⬆️ update sass - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/50 [(223bb)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/223bb5e)
+- **other**: 🥚 add postbuild print - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/47 [(571f1)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/571f14d)
+
+### 🎨 Styles
+
+- **projects**: 🎨 fix eslint warning - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/51 [(e25ce)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/e25ce95)
+
+### 🤖 CI
+
+- **other**: ✨ display the actual request url in terminal - by **一寸灰** in https://github.com/skyfeiz/soybean-admin-element-plus/issues/52 [(313f1)](https://github.com/skyfeiz/soybean-admin-element-plus/commit/313f150)
+
+### ❤️ Contributors
+
+
+[skyfeiz](mailto:webzhangfei@163.com), [一寸灰](mailto:webyicunhui@outlook.com)
+
## [v1.3.10](https://github.com/skyfeiz/soybean-admin-elp/compare/undefined...v1.3.10) (2024-12-31)
### 🚀 Features
diff --git a/package.json b/package.json
index bb2d9ce..13151c1 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "@sa/elp",
"type": "module",
- "version": "1.3.10",
+ "version": "1.3.11",
"description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、ElementPlus and UnoCSS. 一个基于Vue3、Vite3、TypeScript、ElementPlus and UnoCSS的清新优雅的中后台模版。",
"author": {
"name": "Soybean",
diff --git a/packages/alova/package.json b/packages/alova/package.json
index 96bee99..5eeaeb2 100644
--- a/packages/alova/package.json
+++ b/packages/alova/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/alova",
- "version": "1.3.10",
+ "version": "1.3.11",
"exports": {
".": "./src/index.ts",
"./fetch": "./src/fetch.ts",
diff --git a/packages/axios/package.json b/packages/axios/package.json
index 94c14c6..6e384e1 100644
--- a/packages/axios/package.json
+++ b/packages/axios/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/axios",
- "version": "1.3.10",
+ "version": "1.3.11",
"exports": {
".": "./src/index.ts"
},
diff --git a/packages/color/package.json b/packages/color/package.json
index 6987184..454eb54 100644
--- a/packages/color/package.json
+++ b/packages/color/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/color",
- "version": "1.3.10",
+ "version": "1.3.11",
"exports": {
".": "./src/index.ts"
},
diff --git a/packages/hooks/package.json b/packages/hooks/package.json
index 51be2e6..5964948 100644
--- a/packages/hooks/package.json
+++ b/packages/hooks/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/hooks",
- "version": "1.3.10",
+ "version": "1.3.11",
"exports": {
".": "./src/index.ts"
},
diff --git a/packages/materials/package.json b/packages/materials/package.json
index 9dc25a9..4d45092 100644
--- a/packages/materials/package.json
+++ b/packages/materials/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/materials",
- "version": "1.3.10",
+ "version": "1.3.11",
"exports": {
".": "./src/index.ts"
},
diff --git a/packages/ofetch/package.json b/packages/ofetch/package.json
index f7fbb1b..74aff4f 100644
--- a/packages/ofetch/package.json
+++ b/packages/ofetch/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/fetch",
- "version": "1.3.10",
+ "version": "1.3.11",
"exports": {
".": "./src/index.ts"
},
diff --git a/packages/scripts/package.json b/packages/scripts/package.json
index 23807d1..e620541 100644
--- a/packages/scripts/package.json
+++ b/packages/scripts/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/scripts",
- "version": "1.3.10",
+ "version": "1.3.11",
"bin": {
"sa": "./bin.ts"
},
diff --git a/packages/uno-preset/package.json b/packages/uno-preset/package.json
index 80dca4a..b6d20a1 100644
--- a/packages/uno-preset/package.json
+++ b/packages/uno-preset/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/uno-preset",
- "version": "1.3.10",
+ "version": "1.3.11",
"exports": {
".": "./src/index.ts"
},
diff --git a/packages/utils/package.json b/packages/utils/package.json
index d842535..dd22148 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@sa/utils",
- "version": "1.3.10",
+ "version": "1.3.11",
"exports": {
".": "./src/index.ts"
},
diff --git a/src/plugins/app.ts b/src/plugins/app.ts
index 455cece..4465162 100644
--- a/src/plugins/app.ts
+++ b/src/plugins/app.ts
@@ -10,22 +10,19 @@ export function setupAppErrorHandle(app: App) {
};
}
-// Update check interval in milliseconds
-const UPDATE_CHECK_INTERVAL = 3 * 60 * 1000;
-
export function setupAppVersionNotification() {
- const canAutoUpdateApp = import.meta.env.VITE_AUTOMATICALLY_DETECT_UPDATE === 'Y';
+ // Update check interval in milliseconds
+ const UPDATE_CHECK_INTERVAL = 3 * 60 * 1000;
+
+ const canAutoUpdateApp = import.meta.env.VITE_AUTOMATICALLY_DETECT_UPDATE === 'Y' && import.meta.env.PROD;
if (!canAutoUpdateApp) return;
let isShow = false;
let updateInterval: ReturnType | undefined;
- // Check if updates should be checked
- const shouldCheckForUpdates = [!isShow, document.visibilityState === 'visible', !import.meta.env.DEV].every(Boolean);
-
const checkForUpdates = async () => {
- if (!shouldCheckForUpdates) return;
+ if (isShow) return;
const buildTime = await getHtmlBuildTime();
@@ -72,7 +69,7 @@ export function setupAppVersionNotification() {
updateInterval = setInterval(checkForUpdates, UPDATE_CHECK_INTERVAL);
};
// If updates should be checked, set up the visibility change listener and start the update interval
- if (shouldCheckForUpdates) {
+ if (!isShow && document.visibilityState === 'visible') {
// Check for updates when the document is visible
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'visible') {