Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
中汽测评-信息安全测评系统
web
Commits
52503b32
Commit
52503b32
authored
Jan 29, 2024
by
mzx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.91isoft.com:90/car-test/web
into mengzixuan
parents
aa663a08
fa1178e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
standardOption.vue
src/components/Page/standardOption.vue
+1
-0
vue.config.js
vue.config.js
+9
-9
No files found.
src/components/Page/standardOption.vue
View file @
52503b32
...
...
@@ -101,6 +101,7 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"~@/assets/styles/element-variables.scss"
;
.page-box
{
padding
:
1
.5rem
2rem
;
font-size
:
16px
;
...
...
vue.config.js
View file @
52503b32
...
...
@@ -54,15 +54,15 @@ module.exports = {
css
:
{
loaderOptions
:
{
sass
:
{
sassOptions
:
{
outputStyle
:
"expanded"
}
,
additionalData
(
content
,
loaderContext
)
{
const
{
resourcePath
,
rootContext
}
=
loaderContext
const
relativePath
=
path
.
relative
(
rootContext
,
resourcePath
)
if
(
relativePath
.
replace
(
/
\\
/g
,
'/'
)
!==
'src/assets/styles/element-variables.scss'
)
{
return
`@import "~@/assets/styles/element-variables.scss";
${
content
}
`
}
return
content
},
sassOptions
:
{
outputStyle
:
"expanded"
}
//
additionalData(content, loaderContext) {
//
const { resourcePath, rootContext } = loaderContext
//
const relativePath = path.relative(rootContext, resourcePath)
//
if (relativePath.replace(/\\/g, '/') !== 'src/assets/styles/element-variables.scss') {
//
return `@import "~@/assets/styles/element-variables.scss";${content}`
//
}
//
return content
//
},
}
}
},
...
...
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