Skip to content

Commit

Permalink
style: perf some code
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Oct 12, 2020
1 parent 831ff2f commit bfffe42
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
8 changes: 1 addition & 7 deletions .env.report
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,4 @@ NODE_ENV=production
IS_REPORT=true

#项目打包名称
VUE_APP_OUTPUTDIR=dist

#公共组件使用cdn加速
VUE_APP_CDN=true

#使用本文件输出的编译文件不用于部署,所以后端接口地址不用配置
VUE_APP_API_URL=
VUE_APP_OUTPUTDIR=dist
19 changes: 9 additions & 10 deletions src/shims-vue-expand.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ import { Store } from 'vuex';

// 扩充
declare module 'vue/types/vue' {
interface Vue {
$router: VueRouter;
$route: Route;
$store: Store<any>;
lodash:any;
axios:any;
dayjs:any;
$pinyinmatch:any;
}
interface Vue {
$router: VueRouter;
$route: Route;
$store: Store<any>;
lodash: any;
axios: any;
dayjs: any;
$pinyinmatch: any;
}
}

5 changes: 2 additions & 3 deletions src/shims-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
* @Date: 2020年06月22 16:26:22
*/
declare module '*.vue' {
import Vue from 'vue';
import Vue from 'vue';

export default Vue;
export default Vue;
}

declare module 'vuedraggable';
declare module 'jsoneditor';

0 comments on commit bfffe42

Please sign in to comment.