dai-vue-module-m
更改列表
index.js 9(+7 -2)
详细信息
index.js 9(+7 -2)
diff --git a/index.js b/index.js
index d7e2c2c..0b8f725 100644
--- a/index.js
+++ b/index.js
@@ -1,9 +1,14 @@
import * as api from './api.js';
import routes from './routes.js';
import './static/style/style.less';
-const models = {};
export default {
+ use: [],
+ //API 会注入到VUE 中 调用方法 this.$api.xxx
api,
+ //路由
routes,
- models
+ //注入根路由
+ routesRoot: [],
+ //扩展方法,会注入到VUE 中 调用方法 this.$extend.xxx
+ extend: {},
};