build: 迁移 lxgw-wenkai-webfont 到本地依赖
This commit is contained in:
@ -21,6 +21,7 @@
|
|||||||
"axios": "^1.11.0",
|
"axios": "^1.11.0",
|
||||||
"es-toolkit": "^1.39.8",
|
"es-toolkit": "^1.39.8",
|
||||||
"less": "^4.4.0",
|
"less": "^4.4.0",
|
||||||
|
"lxgw-wenkai-webfont": "^1.7.0",
|
||||||
"md-editor-v3": "^6.3.0",
|
"md-editor-v3": "^6.3.0",
|
||||||
"pinia": "^3.0.3",
|
"pinia": "^3.0.3",
|
||||||
"qweather-icons": "^1.7.0",
|
"qweather-icons": "^1.7.0",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
|
/* @import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css"); */
|
||||||
@import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css");
|
@import "lxgw-wenkai-webfont/style.css";
|
||||||
@import "qweather-icons/font/qweather-icons.css";
|
@import "qweather-icons/font/qweather-icons.css";
|
||||||
@import 'md-editor-v3/lib/preview.css';
|
@import "md-editor-v3/lib/preview.css";
|
||||||
@import "nprogress/nprogress.css";
|
@import "nprogress/nprogress.css";
|
||||||
@import "./base.less";
|
@import "./base.less";
|
||||||
|
|||||||
@ -157,8 +157,8 @@ async function validateForm(form: FormInst | null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function persistLogin(data: UserInfo) {
|
function persistLogin(data: UserInfo) {
|
||||||
$cookies.set('token', data.token, '1d')
|
$cookies.set('token', data.token, '7d')
|
||||||
$cookies.set('userinfo', data.userinfo, '1d')
|
$cookies.set('userinfo', data.userinfo, '7d')
|
||||||
usrLog.setIsLogin(true)
|
usrLog.setIsLogin(true)
|
||||||
props.setVisible?.(false)
|
props.setVisible?.(false)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -251,6 +251,9 @@ onUnmounted(() => {
|
|||||||
window.removeEventListener('resize', updateBoxStyle)
|
window.removeEventListener('resize', updateBoxStyle)
|
||||||
window.removeEventListener('scroll', handleScroll)
|
window.removeEventListener('scroll', handleScroll)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 防抖函数
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|||||||
@ -3311,6 +3311,11 @@ lucide-vue-next@^0.543.0:
|
|||||||
resolved "https://registry.npmmirror.com/lucide-vue-next/-/lucide-vue-next-0.543.0.tgz#3ac7f63ec60ed485730372513c7fe41e95250d4f"
|
resolved "https://registry.npmmirror.com/lucide-vue-next/-/lucide-vue-next-0.543.0.tgz#3ac7f63ec60ed485730372513c7fe41e95250d4f"
|
||||||
integrity sha512-Az5kpNm/koKAwSNIKjsZ4uHV2tVfmlQlcHwFBygQ8gc5/jFg7An9OrxgDy/aE5m+HLx7VfLYqDxLr8gWecZbQA==
|
integrity sha512-Az5kpNm/koKAwSNIKjsZ4uHV2tVfmlQlcHwFBygQ8gc5/jFg7An9OrxgDy/aE5m+HLx7VfLYqDxLr8gWecZbQA==
|
||||||
|
|
||||||
|
lxgw-wenkai-webfont@^1.7.0:
|
||||||
|
version "1.7.0"
|
||||||
|
resolved "https://registry.npmmirror.com/lxgw-wenkai-webfont/-/lxgw-wenkai-webfont-1.7.0.tgz#72ef4ef9d00fd185a2ed8898d1a60f73ab732f97"
|
||||||
|
integrity sha512-kVJmT4xMAyOLhG6q0w63wJkVU7RP8UMQRGoAWj9tnpzL7sWFFYiEHBdUQyW9myqBQFa5SQfWfa2VLYF4IJBL5g==
|
||||||
|
|
||||||
magic-string-ast@^1.0.0:
|
magic-string-ast@^1.0.0:
|
||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
resolved "https://registry.npmmirror.com/magic-string-ast/-/magic-string-ast-1.0.3.tgz#51ef7832fd5c70a0188fb94627caa3b8c74ff9bf"
|
resolved "https://registry.npmmirror.com/magic-string-ast/-/magic-string-ast-1.0.3.tgz#51ef7832fd5c70a0188fb94627caa3b8c74ff9bf"
|
||||||
|
|||||||
Reference in New Issue
Block a user