Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
a7c8c67c
Unverified
Commit
a7c8c67c
authored
May 11, 2021
by
江麻妞
Committed by
GitHub
May 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: typo (#584)
* fix: 变量名错误 * fix: 修复正则可以匹配纯数字问题
parent
ae3f8329
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
styleImport.ts
build/vite/plugin/styleImport.ts
+2
-2
env.ts
src/utils/env.ts
+1
-1
No files found.
build/vite/plugin/styleImport.ts
View file @
a7c8c67c
...
...
@@ -7,7 +7,7 @@ import styleImport from 'vite-plugin-style-import';
export
function
configStyleImportPlugin
(
isBuild
:
boolean
)
{
if
(
!
isBuild
)
return
[];
const
pwa
Plugin
=
styleImport
({
const
styleImport
Plugin
=
styleImport
({
libs
:
[
{
libraryName
:
'
ant-design-vue
'
,
...
...
@@ -18,5 +18,5 @@ export function configStyleImportPlugin(isBuild: boolean) {
},
],
});
return
pwa
Plugin
;
return
styleImport
Plugin
;
}
src/utils/env.ts
View file @
a7c8c67c
...
...
@@ -30,7 +30,7 @@ export function getAppEnvConfig() {
VITE_GLOB_UPLOAD_URL
,
}
=
ENV
;
if
(
!
/
[
a-zA-Z
\_]
*
/
.
test
(
VITE_GLOB_APP_SHORT_NAME
))
{
if
(
!
/
^
[
a-zA-Z
\_]
*$
/
.
test
(
VITE_GLOB_APP_SHORT_NAME
))
{
warn
(
`VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.`
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment