fix: 背景图支持还原默认

This commit is contained in:
TsMask
2023-10-30 11:43:05 +08:00
parent 94a075e8bb
commit e26e73b6fe
3 changed files with 43 additions and 12 deletions

View File

@@ -78,8 +78,8 @@ const useAppStore = defineStore('app', {
*/
getLoginBackground(state) {
const path = state.loginBackground;
if (!path) {
return '';
if (!path || path === '#') {
return '#';
}
if (validHttp(path)) {
return path;