Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
8ad127c2
提交
8ad127c2
authored
3月 23, 2021
作者:
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: add route base close #404
上级
8fb03961
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
30 行增加
和
51 行删除
+30
-51
tsconfig.json
build/tsconfig.json
+0
-17
typeing.d.ts
build/typeing.d.ts
+0
-6
utils.ts
build/utils.ts
+0
-15
html.ts
build/vite/plugin/html.ts
+0
-1
index.ts
build/vite/plugin/index.ts
+0
-1
pwa.ts
build/vite/plugin/pwa.ts
+0
-1
_util.ts
mock/_util.ts
+1
-1
index.ts
src/router/index.ts
+1
-1
projectSetting.ts
src/settings/projectSetting.ts
+1
-1
tsconfig.json
tsconfig.json
+2
-0
event.d.ts
types/event.d.ts
+0
-7
global.d.ts
types/global.d.ts
+25
-0
没有找到文件。
build/tsconfig.json
deleted
100644 → 0
浏览文件 @
8fb03961
{
"compilerOptions"
:
{
"target"
:
"esnext"
,
"module"
:
"commonjs"
,
"moduleResolution"
:
"node"
,
"strict"
:
true
,
"forceConsistentCasingInFileNames"
:
true
,
"baseUrl"
:
"."
,
"esModuleInterop"
:
true
,
"noUnusedLocals"
:
true
,
"noUnusedParameters"
:
true
,
"experimentalDecorators"
:
true
,
"lib"
:
[
"dom"
,
"esnext"
],
"incremental"
:
true
,
"skipLibCheck"
:
true
}
}
build/typeing.d.ts
deleted
100644 → 0
浏览文件 @
8fb03961
declare
module
'*.json'
{
const
src
:
any
;
export
default
src
;
}
declare
type
Recordable
=
Record
<
string
,
any
>
;
build/utils.ts
浏览文件 @
8ad127c2
...
...
@@ -17,21 +17,6 @@ export function isReportMode(): boolean {
return
process
.
env
.
REPORT
===
'true'
;
}
export
interface
ViteEnv
{
VITE_PORT
:
number
;
VITE_USE_MOCK
:
boolean
;
VITE_USE_PWA
:
boolean
;
VITE_PUBLIC_PATH
:
string
;
VITE_PROXY
:
[
string
,
string
][];
VITE_GLOB_APP_TITLE
:
string
;
VITE_GLOB_APP_SHORT_NAME
:
string
;
VITE_USE_CDN
:
boolean
;
VITE_DROP_CONSOLE
:
boolean
;
VITE_BUILD_COMPRESS
:
'gzip'
|
'brotli'
|
'none'
;
VITE_LEGACY
:
boolean
;
VITE_USE_IMAGEMIN
:
boolean
;
}
// Read all environment variable configuration files to process.env
export
function
wrapperEnv
(
envConf
:
Recordable
):
ViteEnv
{
const
ret
:
any
=
{};
...
...
build/vite/plugin/html.ts
浏览文件 @
8ad127c2
...
...
@@ -3,7 +3,6 @@
* https://github.com/anncwb/vite-plugin-html
*/
import
type
{
Plugin
}
from
'vite'
;
import
type
{
ViteEnv
}
from
'../../utils'
;
import
html
from
'vite-plugin-html'
;
...
...
build/vite/plugin/index.ts
浏览文件 @
8ad127c2
import
type
{
Plugin
}
from
'vite'
;
import
type
{
ViteEnv
}
from
'../../utils'
;
import
vue
from
'@vitejs/plugin-vue'
;
import
vueJsx
from
'@vitejs/plugin-vue-jsx'
;
...
...
build/vite/plugin/pwa.ts
浏览文件 @
8ad127c2
...
...
@@ -2,7 +2,6 @@
* Zero-config PWA for Vite
* https://github.com/antfu/vite-plugin-pwa
*/
import
type
{
ViteEnv
}
from
'../../utils'
;
import
{
VitePWA
}
from
'vite-plugin-pwa'
;
...
...
mock/_util.ts
浏览文件 @
8ad127c2
// Interface data format used to return a unified format
export
function
resultSuccess
<
T
=
any
>
(
result
:
T
,
{
message
=
'ok'
}
=
{})
{
export
function
resultSuccess
<
T
=
Recordable
>
(
result
:
T
,
{
message
=
'ok'
}
=
{})
{
return
{
code
:
0
,
result
,
...
...
src/router/index.ts
浏览文件 @
8ad127c2
...
...
@@ -9,7 +9,7 @@ const WHITE_NAME_LIST = [LoginRoute.name, REDIRECT_NAME];
// app router
const
router
=
createRouter
({
history
:
createWebHashHistory
(),
history
:
createWebHashHistory
(
import
.
meta
.
env
.
VITE_PUBLIC_PATH
),
routes
:
(
basicRoutes
as
unknown
)
as
RouteRecordRaw
[],
strict
:
true
,
scrollBehavior
:
()
=>
({
left
:
0
,
top
:
0
}),
...
...
src/settings/projectSetting.ts
浏览文件 @
8ad127c2
...
...
@@ -20,7 +20,7 @@ const setting: ProjectConfig = {
settingButtonPosition
:
SettingButtonPositionEnum
.
AUTO
,
// Permission mode
permissionMode
:
PermissionModeEnum
.
BACK
,
permissionMode
:
PermissionModeEnum
.
ROLE
,
// Permission-related cache is stored in sessionStorage or localStorage
permissionCacheType
:
CacheTypeEnum
.
LOCAL
,
...
...
tsconfig.json
浏览文件 @
8ad127c2
...
...
@@ -34,6 +34,8 @@
"src/**/*.vue"
,
"types/**/*.d.ts"
,
"types/**/*.ts"
,
"build/**/*.ts"
,
"build/**/*.d.ts"
,
"mock/**/*.ts"
],
"exclude"
:
[
"node_modules"
,
"dist"
,
"**/*.js"
]
...
...
types/event.d.ts
deleted
100644 → 0
浏览文件 @
8fb03961
declare
interface
ChangeEvent
extends
Event
{
target
:
HTMLInputElement
;
}
declare
interface
WheelEvent
{
path
?:
EventTarget
[];
}
types/global.d.ts
浏览文件 @
8ad127c2
...
...
@@ -61,3 +61,28 @@ declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElR
declare
type
ElRef
<
T
extends
HTMLElement
=
HTMLDivElement
>
=
Nullable
<
T
>
;
type
IsSame
<
A
,
B
>
=
A
|
B
extends
A
&
B
?
true
:
false
;
declare
interface
ChangeEvent
extends
Event
{
target
:
HTMLInputElement
;
}
declare
interface
WheelEvent
{
path
?:
EventTarget
[];
}
type
ImportMetaEnv
=
ViteEnv
;
declare
interface
ViteEnv
{
VITE_PORT
:
number
;
VITE_USE_MOCK
:
boolean
;
VITE_USE_PWA
:
boolean
;
VITE_PUBLIC_PATH
:
string
;
VITE_PROXY
:
[
string
,
string
][];
VITE_GLOB_APP_TITLE
:
string
;
VITE_GLOB_APP_SHORT_NAME
:
string
;
VITE_USE_CDN
:
boolean
;
VITE_DROP_CONSOLE
:
boolean
;
VITE_BUILD_COMPRESS
:
'gzip'
|
'brotli'
|
'none'
;
VITE_LEGACY
:
boolean
;
VITE_USE_IMAGEMIN
:
boolean
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论