ys-geeker
v1.1.42
Published
Public webpack project
Downloads
15
Readme
🚀 Welcome to ys-geeker!
This project has been created using webpack-cli, you can now run
安装组件
npm install ys-geeker
引入通用工具
import Utils from 'ys-geeker/@library/utils';
import { copy } from 'ys-geeker/@library/utils';
引入cookie工具
import Cookie from 'ys-geeker/@library/cookie';
引入组件
import { Filter, Service, Auth } from 'ys-geeker';
import { Message, Loading } from 'element-ui';
//
Vue.use(Filter, {
baseUrl: 'www.test.com' //传入根路径baseUrl
});
Vue.use(Service,{
service: serviceObj,//axios创建的实例
elementConfig: {
Message: Message,//elementUI的Message组件
Loading: Loading //elementUI的Loading组件
}
})
Vue.use(Auth,{
service: serviceObj.service,//axios创建的实例
elementConfig: {
Message: Message,//elementUI的Message组件
Loading: Loading //elementUI的Loading组件
}
})