refactor: 优化登录页按需加载
This commit is contained in:
parent
f845d657f8
commit
c9ac071ef5
|
@ -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">
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue