feat: 打包构建添加可选 gzipbrotli 压缩模式

This commit is contained in:
xiaoxian521
2022-10-27 02:35:56 +08:00
parent 54ebd19875
commit f5a75356df
11 changed files with 124 additions and 27 deletions

View File

@@ -8,9 +8,10 @@ defineOptions({
name: "PermissionPage"
});
let width = computed((): CSSProperties => {
let elStyle = computed((): CSSProperties => {
return {
width: "85vw"
width: "85vw",
justifyContent: "start"
};
});
@@ -41,10 +42,10 @@ function onChange() {
<template>
<el-space direction="vertical" size="large">
<el-tag :style="width" size="large" effect="dark">
<el-tag :style="elStyle" size="large" effect="dark">
模拟后台根据不同角色返回对应路由观察左侧菜单变化管理员角色可查看系统管理菜单普通角色不可查看系统管理菜单
</el-tag>
<el-card shadow="never" :style="width">
<el-card shadow="never" :style="elStyle">
<template #header>
<div class="card-header">
<span>当前角色{{ username }}</span>
@@ -61,9 +62,3 @@ function onChange() {
</el-card>
</el-space>
</template>
<style lang="scss" scoped>
:deep(.el-tag) {
justify-content: start;
}
</style>