diff --git a/package.json b/package.json index 833102c..8d49f4d 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,8 @@ "@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4010520240507001", "clipboard": "^2.0.11", "dayjs": "^1.11.11", + "pinia": "2.0.33", + "pinia-plugin-persistedstate": "^3.2.1", "tiny-emitter": "^2.1.0", "uview-plus": "^3.1.41", "vue": "^3.4.21", @@ -71,6 +73,8 @@ "@vue/runtime-core": "^3.4.21", "sass": "^1.69.7", "sass-loader": "10", + "unocss": "^0.58.5", + "unocss-applet": "^0.8.2", "vite": "5.2.8" } } diff --git a/src/App.vue b/src/App.vue index eaf7e22..fd15dd3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -125,9 +125,6 @@ button::after { // 页面布局相关 外边距 -.p-16 { - padding: 16px; -} .pt-24 { padding-top: 20px; diff --git a/src/main.js b/src/main.js index 3baf644..d5b6437 100644 --- a/src/main.js +++ b/src/main.js @@ -12,6 +12,7 @@ dayjs.locale('zh-cn'); import mpShare from 'uview-plus/libs/mixin/mpShare' import mixin_common, { goToPage } from '@/utils/mixins/mixin_common'; +import 'uno.css' export function createApp() { const app = createSSRApp(App); diff --git a/src/pages/charts/rules.vue b/src/pages/charts/rules.vue index e175a3d..2cfaab1 100644 --- a/src/pages/charts/rules.vue +++ b/src/pages/charts/rules.vue @@ -7,7 +7,7 @@ - + {{ props.rules }} diff --git a/src/pages/my/index.vue b/src/pages/my/index.vue index 50efdfb..b7b6a34 100644 --- a/src/pages/my/index.vue +++ b/src/pages/my/index.vue @@ -18,7 +18,7 @@ }" > - + {