-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* @file: 声明vue拓展原型链上的属性类型 | ||
* @copyright: NanJing Anshare Tech .Com | ||
* @author: BoBo | ||
* @Date: 2020年06月23 16:47:06 | ||
*/ | ||
/* eslint-disable */ | ||
import VueRouter, { Route } from 'vue-router'; | ||
|
||
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; | ||
HOST_URL: any; | ||
API_URL: any; | ||
} | ||
} | ||
|
||
declare global { | ||
interface Window { | ||
__HOST__URL__: string; | ||
__PREFIX__URL__: string; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* @file: 让ts识别vue文件,声明第三方模块 | ||
* @copyright: NanJing Anshare Tech .Com | ||
* @author: BoBo | ||
* @Date: 2020年06月22 16:26:22 | ||
*/ | ||
declare module '*.vue' { | ||
import Vue from 'vue'; | ||
|
||
export default Vue; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
interface SystemConfig { | ||
passwordLength: string, | ||
clientTimeOut: string, | ||
initialPassword: string, | ||
systemName: string, | ||
} | ||
|
||
interface SideBarState { | ||
opened: 1 | 0 | ||
} |