mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-13 06:02:49 +00:00
优化
This commit is contained in:
parent
d496348bf2
commit
a5329c542f
@ -6,6 +6,7 @@
|
||||
"dev": "vite --host",
|
||||
"build": "vite build",
|
||||
"build-static": "vite build --mode static",
|
||||
"build-demo": "vite build --mode demo",
|
||||
"preview": "vite preview",
|
||||
"type-check": "vue-tsc --build --force",
|
||||
"lint": "eslint . --fix",
|
||||
|
||||
@ -98,6 +98,12 @@ const form = reactive({
|
||||
verifyCode: ''
|
||||
});
|
||||
|
||||
// 演示模式
|
||||
if (import.meta.env.MODE == 'demo') {
|
||||
form.username = 'admin';
|
||||
form.password = '123456';
|
||||
}
|
||||
|
||||
// 登录
|
||||
async function toLogin() {
|
||||
if (!form.username) {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="cl-comm__icon" @click="toCode">
|
||||
<span class="mr-2">Ai</span>
|
||||
<cl-svg name="quick" />
|
||||
<span class="ml-2">{{ $t('极速编码') }}</span>
|
||||
Ai
|
||||
<cl-svg name="quick" class="ml-2 mr-2" />
|
||||
{{ $t('极速编码') }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -22,13 +22,11 @@ function toCode() {
|
||||
padding: 0 10px;
|
||||
border-color: var(--el-color-primary);
|
||||
color: var(--el-color-primary);
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
|
||||
.cl-svg {
|
||||
color: var(--el-color-primary);
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -29,7 +29,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
||||
eps: {
|
||||
enable: true
|
||||
},
|
||||
demo: false // 是否开启演示模式
|
||||
demo: mode == 'demo' // 是否开启演示模式
|
||||
}),
|
||||
visualizer({
|
||||
open: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user