refactor: 优化登录页按需加载

This commit is contained in:
Captain.B 2021-07-02 11:32:22 +08:00 committed by 刘瑞斌
parent f845d657f8
commit c9ac071ef5
2 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="container" v-loading="result.loading" v-if="ready">
<div class="container" v-if="ready">
<el-row type="flex">
<el-col :span="12">

View File

@ -1,5 +1,5 @@
import Vue from 'vue';
import ElementUI, {Button, Col, Form, FormItem, Input, Row} from 'element-ui';
import {Button, Col, Form, FormItem, Input, Row, RadioGroup} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Login from "./Login.vue";
import Ajax from "../common/js/ajax";
@ -11,16 +11,13 @@ import logoHeader from "../assets/logo-light-MeterSphere.svg";
Vue.config.productionTip = false;
Vue.use(ElementUI, {
i18n: (key, value) => i18n.t(key, value)
});
Vue.use(Row);
Vue.use(Col);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Input);
Vue.use(Button);
Vue.use(RadioGroup);
Vue.use(Ajax);