mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
feat: 打包构建添加可选 gzip 与 brotli 压缩模式
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user