Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
c40ecee6
提交
c40ecee6
authored
5月 17, 2022
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复 build 运行异常问题
上级
44d919ba
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
34 行增加
和
10 行删除
+34
-10
.env.production
.env.production
+5
-3
settings.json
.vscode/settings.json
+7
-1
buildConf.ts
build/script/buildConf.ts
+2
-6
prettier.config.js
prettier.config.js
+8
-0
error.ts
src/api/demo/error.ts
+12
-0
没有找到文件。
.env.production
浏览文件 @
c40ecee6
...
@@ -10,16 +10,18 @@ VITE_DROP_CONSOLE = true
...
@@ -10,16 +10,18 @@ VITE_DROP_CONSOLE = true
# Whether to enable gzip or brotli compression
# Whether to enable gzip or brotli compression
# Optional: gzip | brotli | none
# Optional: gzip | brotli | none
# If you need multiple forms, you can use `,` to separate
# If you need multiple forms, you can use `,` to separate
VITE_BUILD_COMPRESS = '
none
'
VITE_BUILD_COMPRESS = '
gzip
'
# Whether to delete origin files when using compress, default false
# Whether to delete origin files when using compress, default false
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
# Basic interface address SPA
# Basic interface address SPA
VITE_GLOB_API_URL=/basic-api
# VITE_GLOB_API_URL=/basic-api
VITE_GLOB_API_URL=http://192.168.0.156:8081
# Interface prefix
# Interface prefix
VITE_GLOB_API_URL_PREFIX=
# VITE_GLOB_API_URL_PREFIX=
VITE_GLOB_API_URL_PREFIX=/api
# File upload address, optional
# File upload address, optional
# It can be forwarded by nginx or write the actual address directly
# It can be forwarded by nginx or write the actual address directly
...
...
.vscode/settings.json
浏览文件 @
c40ecee6
...
@@ -135,5 +135,11 @@
...
@@ -135,5 +135,11 @@
"pnpm"
,
"pnpm"
,
"antd"
"antd"
],
],
"vue-i18n.i18nPaths"
:
"src
\\
locales,src
\\
locales
\\
lang,public
\\
resource
\\
tinymce
\\
langs"
"vue-i18n.i18nPaths"
:
"src
\\
locales,src
\\
locales
\\
lang,public
\\
resource
\\
tinymce
\\
langs"
,
"[properties]"
:
{
"editor.defaultFormatter"
:
"foxundermoon.shell-format"
},
"[nginx]"
:
{
"editor.defaultFormatter"
:
"teclado.vscode-nginx-format"
}
}
}
build/script/buildConf.ts
浏览文件 @
c40ecee6
...
@@ -31,14 +31,10 @@ function createConfig(params: CreateConfigParams) {
...
@@ -31,14 +31,10 @@ function createConfig(params: CreateConfigParams) {
fs
.
mkdirp
(
getRootPath
(
OUTPUT_DIR
))
fs
.
mkdirp
(
getRootPath
(
OUTPUT_DIR
))
writeFileSync
(
getRootPath
(
`
${
OUTPUT_DIR
}
/
${
configFileName
}
`
),
configStr
)
writeFileSync
(
getRootPath
(
`
${
OUTPUT_DIR
}
/
${
configFileName
}
`
),
configStr
)
console
.
log
(
console
.
log
(
colors
.
cyan
(
`✨ [
${
pkg
.
name
}
]`
)
+
` - configuration file is build successfully:`
)
colors
.
cyan
(
`✨ [
${
pkg
.
name
}
]`
)
+
` - configuration file is build successfully:`
,
)
console
.
log
(
colors
.
gray
(
OUTPUT_DIR
+
'/'
+
colors
.
green
(
configFileName
))
+
'
\
n'
)
console
.
log
(
colors
.
gray
(
OUTPUT_DIR
+
'/'
+
colors
.
green
(
configFileName
))
+
'
\
n'
)
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
console
.
log
(
colors
.
red
(
'configuration file configuration file failed to package:
\
n'
+
error
))
colors
.
red
(
'configuration file configuration file failed to package:
\
n'
+
error
),
)
}
}
}
}
...
...
prettier.config.js
浏览文件 @
c40ecee6
...
@@ -8,4 +8,12 @@ module.exports = {
...
@@ -8,4 +8,12 @@ module.exports = {
proseWrap
:
'never'
,
proseWrap
:
'never'
,
htmlWhitespaceSensitivity
:
'strict'
,
htmlWhitespaceSensitivity
:
'strict'
,
endOfLine
:
'lf'
,
endOfLine
:
'lf'
,
overrides
:
[
{
files
:
[
'*.yml'
,
'*.yaml'
],
options
:
{
tabWidth
:
'2'
,
},
},
],
}
}
src/api/demo/error.ts
0 → 100644
浏览文件 @
c40ecee6
import
{
defHttp
}
from
'/@/utils/http/axios'
enum
Api
{
// The address does not exist
Error
=
'/error'
,
}
/**
* @description: Trigger ajax error
*/
export
const
fireErrorApi
=
()
=>
defHttp
.
get
({
url
:
Api
.
Error
})
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论