feat: 全局样式引入并生效
This commit is contained in:
parent
ec503d81c4
commit
adab851dd4
@ -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)
|
||||
|
@ -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
4
src/style/index.scss
Normal file
@ -0,0 +1,4 @@
|
||||
.test {
|
||||
margin-top: 4px;
|
||||
color: red;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user