Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-04 22:05:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5c3b7d42ad79fcfb0d1391b6fc5489aad901ae30
5c3b7d42
1 parent
2ef2df83
fix(config): 禁用Webpack持久化缓存以解决构建问题
style(less): 移除深色模式适配代码并优化样式格式
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
config/index.js
src/pages/post/index.less
config/index.js
View file @
5c3b7d4
...
...
@@ -56,7 +56,7 @@ export default defineConfig(async (merge) => {
}
},
cache
:
{
enable
:
tru
e
// Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
enable
:
fals
e
// Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
},
sass
:{
data
:
`@import "@nutui/nutui-taro/dist/styles/variables.scss";`
...
...
src/pages/post/index.less
View file @
5c3b7d4
...
...
@@ -170,23 +170,23 @@
}
// 深色模式适配
@media (prefers-color-scheme: dark) {
.post-page {
.bg-white {
background-color: #1f2937;
border-color: #374151;
color: #f9fafb;
}
.text-gray-600 {
color: #9ca3af;
}
.text-gray-500 {
color: #6b7280;
}
}
}
//
@media (prefers-color-scheme: dark) {
//
.post-page {
//
.bg-white {
//
background-color: #1f2937;
//
border-color: #374151;
//
color: #f9fafb;
//
}
//
.text-gray-600 {
//
color: #9ca3af;
//
}
//
.text-gray-500 {
//
color: #6b7280;
//
}
//
}
//
}
// 动画效果
@keyframes spin {
...
...
Please
register
or
login
to post a comment