Merge remote-tracking branch 'origin/master'
# Conflicts: # src/layout/components/tasks.vue
This commit is contained in:
commit
2a2d05b44f
|
|
@ -12,8 +12,9 @@ import colorTool from '@/utils/color'
|
|||
|
||||
const {locale, messages} = useI18n()
|
||||
|
||||
|
||||
const config = ref({
|
||||
size: "default",
|
||||
size: 'default',
|
||||
zIndex: 2000,
|
||||
button: {
|
||||
autoInsertSpace: false
|
||||
|
|
@ -37,7 +38,6 @@ if(app_color){
|
|||
document.documentElement.style.setProperty(`--el-color-primary-dark-${i}`, colorTool.darken(app_color, i / 10));
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
|
|
|||
|
|
@ -75,9 +75,9 @@
|
|||
import {getCurrentInstance, ref, onMounted, watch} from 'vue'
|
||||
import {useI18n} from 'vue-i18n'
|
||||
import {useRouter, useRoute} from 'vue-router';
|
||||
import tools from "@/utils/tools.js";
|
||||
import sysConfig from "@/config/index.js";
|
||||
import api from "@/api/index.js";
|
||||
import tools from "@/utils/tools";
|
||||
import sysConfig from "@/config/index";
|
||||
import api from "@/api/index";
|
||||
|
||||
defineOptions({
|
||||
name: 'login'
|
||||
|
|
@ -92,7 +92,6 @@ let lang = ref(tools.data.get('APP_LANG') || sysConfig.LANG)
|
|||
let dark = ref(false)
|
||||
const redirect = ref(undefined);
|
||||
|
||||
|
||||
const langs = ref([
|
||||
{
|
||||
name: '简体中文',
|
||||
|
|
@ -173,7 +172,8 @@ async function getCode() {
|
|||
|
||||
async function login() {
|
||||
// 校验登录
|
||||
const validate = await proxy.$refs.loginForm.validate().catch(() => {});
|
||||
const validate = await proxy.$refs.loginForm.validate().catch(() => {
|
||||
});
|
||||
if (!validate) {
|
||||
return false
|
||||
}
|
||||
|
|
@ -224,6 +224,7 @@ function configDark() {
|
|||
localStorage.setItem("APP_DARK", 'light')
|
||||
}
|
||||
}
|
||||
|
||||
function configLang(command) {
|
||||
lang.value = command.value
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue