|
@@ -13,14 +13,28 @@ import "@/utils/rem";
|
|
import "@/common/permission";
|
|
import "@/common/permission";
|
|
// 全局css
|
|
// 全局css
|
|
import "@/styles/index.scss";
|
|
import "@/styles/index.scss";
|
|
-import { Button, Image, Dialog, NavBar, Tabbar, TabbarItem, Tabs, Tab, Grid, GridItem, Icon, List, Cell } from "vant";
|
|
|
|
|
|
+import {
|
|
|
|
+ Button,
|
|
|
|
+ Image,
|
|
|
|
+ Dialog,
|
|
|
|
+ NavBar,
|
|
|
|
+ Tabbar,
|
|
|
|
+ TabbarItem,
|
|
|
|
+ Tabs,
|
|
|
|
+ Tab,
|
|
|
|
+ Grid,
|
|
|
|
+ GridItem,
|
|
|
|
+ Icon,
|
|
|
|
+ List,
|
|
|
|
+ Cell
|
|
|
|
+} from "vant";
|
|
|
|
|
|
window.$_http = axios;
|
|
window.$_http = axios;
|
|
// event Bus 用于无关系组件间的通信。
|
|
// event Bus 用于无关系组件间的通信。
|
|
Vue.prototype.$bus = new Vue();
|
|
Vue.prototype.$bus = new Vue();
|
|
Vue.prototype.$_http = axios;
|
|
Vue.prototype.$_http = axios;
|
|
Vue.prototype.$_API = API;
|
|
Vue.prototype.$_API = API;
|
|
-Vue.use(common)
|
|
|
|
|
|
+Vue.use(common);
|
|
|
|
|
|
Vue.component("VanButton", Button);
|
|
Vue.component("VanButton", Button);
|
|
Vue.component("VanImage", Image);
|
|
Vue.component("VanImage", Image);
|