Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
b6e6a7c4
Commit
b6e6a7c4
authored
Jun 24, 2021
by
水落(YangLei)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化css配置,解决打包没把样式打进去的问题
parent
b4d53406
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
src/App.vue
src/App.vue
+4
-8
tailwind.config.js
tailwind.config.js
+1
-1
No files found.
src/App.vue
View file @
b6e6a7c4
...
@@ -20,27 +20,26 @@ export default {
...
@@ -20,27 +20,26 @@ export default {
created
()
{
created
()
{
this
.
setHtmlTitle
();
this
.
setHtmlTitle
();
this
.
setLanguage
(
this
.
lang
);
this
.
setLanguage
(
this
.
lang
);
enquireScreen
(
(
isMobile
)
=>
this
.
setDevice
(
isMobile
));
enquireScreen
(
isMobile
=>
this
.
setDevice
(
isMobile
));
},
},
mounted
()
{},
mounted
()
{},
watch
:
{
watch
:
{
lang
(
val
)
{
lang
(
val
)
{
this
.
setLanguage
(
val
);
this
.
setLanguage
(
val
);
this
.
setHtmlTitle
();
this
.
setHtmlTitle
();
},
},
$route
()
{
$route
()
{
this
.
setHtmlTitle
();
this
.
setHtmlTitle
();
},
},
'
theme.mode
'
:
function
(
val
)
{
'
theme.mode
'
:
function
(
val
)
{
let
closeMessage
=
this
.
$message
.
loading
(
`您选择了主题模式
${
val
}
, 正在切换...`
);
let
closeMessage
=
this
.
$message
.
loading
(
`您选择了主题模式
${
val
}
, 正在切换...`
);
changeThemeColor
(
this
.
theme
.
color
,
val
).
then
(
closeMessage
);
changeThemeColor
(
this
.
theme
.
color
,
val
).
then
(
closeMessage
);
},
},
'
theme.color
'
:
function
(
val
)
{
'
theme.color
'
:
function
(
val
)
{
let
closeMessage
=
this
.
$message
.
loading
(
`您选择了主题色
${
val
}
, 正在切换...`
);
let
closeMessage
=
this
.
$message
.
loading
(
`您选择了主题色
${
val
}
, 正在切换...`
);
changeThemeColor
(
val
,
this
.
theme
.
mode
).
then
(
closeMessage
);
changeThemeColor
(
val
,
this
.
theme
.
mode
).
then
(
closeMessage
);
},
},
layout
:
function
()
{
layout
:
function
()
{
window
.
dispatchEvent
(
new
Event
(
'
resize
'
));
window
.
dispatchEvent
(
new
Event
(
'
resize
'
));
},
},
},
},
...
@@ -77,6 +76,3 @@ export default {
...
@@ -77,6 +76,3 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
tailwind.config.js
View file @
b6e6a7c4
module
.
exports
=
{
module
.
exports
=
{
purge
:
[
'
./src/*.vue
'
],
purge
:
[
'
./src/*
*/*
.vue
'
],
darkMode
:
false
,
// or 'media' or 'class'
darkMode
:
false
,
// or 'media' or 'class'
theme
:
{
theme
:
{
extend
:
{},
extend
:
{},
...
...
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