feat: 全局样式引入并生效

This commit is contained in:
菲鸽 2024-01-30 20:22:35 +08:00
parent ec503d81c4
commit adab851dd4
3 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import store from './store'
import i18n from './locale/index'
import 'virtual:svg-icons-register'
import 'virtual:uno.css'
import '@/style/index.scss'
export function createApp() {
const app = createSSRApp(App)

View File

@ -5,7 +5,11 @@
</route>
<template>
<view class="text-green-500 text-center">分包页面demo</view>
<view class="text-center">
<view class="m-8"> http://localhost:9000/#/pages-sub/demo/index </view>
<view class="text-green-500"> 分包页面demo </view>
<view class="test">test global css</view>
</view>
</template>
<script lang="ts" setup>

4
src/style/index.scss Normal file
View File

@ -0,0 +1,4 @@
.test {
margin-top: 4px;
color: red;
}