Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开源元宇宙
vue-vben-admin
提交
8ad127c2
V
vue-vben-admin
项目概览
开源元宇宙
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8ad127c2
编写于
3月 23, 2021
作者:
V
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: add route base close #404
上级
8fb03961
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
30 addition
and
51 deletion
+30
-51
build/tsconfig.json
build/tsconfig.json
+0
-17
build/typeing.d.ts
build/typeing.d.ts
+0
-6
build/utils.ts
build/utils.ts
+0
-15
build/vite/plugin/html.ts
build/vite/plugin/html.ts
+0
-1
build/vite/plugin/index.ts
build/vite/plugin/index.ts
+0
-1
build/vite/plugin/pwa.ts
build/vite/plugin/pwa.ts
+0
-1
mock/_util.ts
mock/_util.ts
+1
-1
src/router/index.ts
src/router/index.ts
+1
-1
src/settings/projectSetting.ts
src/settings/projectSetting.ts
+1
-1
tsconfig.json
tsconfig.json
+2
-0
types/event.d.ts
types/event.d.ts
+0
-7
types/global.d.ts
types/global.d.ts
+25
-0
未找到文件。
build/tsconfig.json
已删除
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
已删除
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
已删除
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
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录