fix: global scss injection error problem (#4014)
parent
530159140c
commit
f13fda408b
|
@ -72,7 +72,7 @@ const { b, e, is } = useNamespace('menu');
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// 如果你在应用内使用,这行代码可以省略,已经在所有的应用内全局引入了
|
// 如果你在应用内使用,这行代码可以省略,已经在所有的应用内全局引入了
|
||||||
@import (reference) '@vben/styles/global';
|
@import '@vben/styles/global';
|
||||||
@include b('menu') {
|
@include b('menu') {
|
||||||
color: black;
|
color: black;
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ function createCssOptions(injectGlobalScss = true) {
|
||||||
const relativePath = relative(root, filepath);
|
const relativePath = relative(root, filepath);
|
||||||
// apps下的包注入全局样式
|
// apps下的包注入全局样式
|
||||||
if (relativePath.startsWith('apps/')) {
|
if (relativePath.startsWith('apps/')) {
|
||||||
return `@import (reference) "@vben/styles/global";\n${content}`;
|
return `@import "@vben/styles/global";\n${content}`;
|
||||||
}
|
}
|
||||||
return content;
|
return content;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue