mirror of
https://github.com/1024-lab/smart-admin.git
synced 2026-07-17 08:56:07 +00:00
【v3.1.0】1、【新增】9种登录背景图和样式; 2、【新增】全局字体大小切换; 3、【新增】主题颜色切换; 4、【新增】移除cookie保存token,改为使用localStorage; 5、【优化】升级 ant design vue 到最新版本;
This commit is contained in:
+14
-6
@@ -34,9 +34,9 @@
|
||||
<HeaderAvatar />
|
||||
</div>
|
||||
<!---帮助文档--->
|
||||
<div class="user-space-item" @click="showHelpDoc">
|
||||
<question-circle-two-tone style="font-size: 18px; margin-right: 5px; margin-top: 5px" />
|
||||
<div class="user-space-item" @click="showHelpDoc" v-if="!showHelpDocFlag">
|
||||
<span>帮助文档</span>
|
||||
<DoubleLeftOutlined v-if="!showHelpDocFlag" />
|
||||
</div>
|
||||
|
||||
<HeaderSetting ref="headerSetting" />
|
||||
@@ -48,7 +48,8 @@
|
||||
import HeaderSetting from './header-setting.vue';
|
||||
import HeaderMessage from './header-message.vue';
|
||||
import { useAppConfigStore } from '/@/store/modules/system/app-config';
|
||||
import { ref } from 'vue';
|
||||
import { computed, ref } from 'vue';
|
||||
import { theme } from 'ant-design-vue';
|
||||
|
||||
// 设置
|
||||
const headerSetting = ref();
|
||||
@@ -67,10 +68,17 @@
|
||||
useAppConfigStore().showHelpDoc();
|
||||
}
|
||||
|
||||
const showHelpDocFlag = computed(() => {
|
||||
return useAppConfigStore().helpDocFlag;
|
||||
});
|
||||
|
||||
//搜索
|
||||
function search(){
|
||||
window.open("https://1024lab.net");
|
||||
function search() {
|
||||
window.open('https://1024lab.net');
|
||||
}
|
||||
|
||||
const { useToken } = theme;
|
||||
const { token } = useToken();
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@@ -91,7 +99,7 @@
|
||||
}
|
||||
|
||||
.user-space-item:hover {
|
||||
color: @primary-color;
|
||||
color: v-bind('token.colorPrimary');
|
||||
background: @hover-bg-color;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user