+
- {{
- item.label }}
+ {{item.label }}
@@ -17,41 +16,40 @@ export default {
data() {
return {
sizeOptions: [
- { label: 'Default', value: 'default' },
- { label: 'Medium', value: 'medium' },
- { label: 'Small', value: 'small' },
- { label: 'Mini', value: 'mini' }
- ]
- }
+ { label: "Default", value: "default" },
+ { label: "Medium", value: "medium" },
+ { label: "Small", value: "small" },
+ { label: "Mini", value: "mini" },
+ ],
+ };
},
computed: {
size() {
- return this.$store.getters.size
- }
+ return this.$store.getters.size;
+ },
},
methods: {
handleSetSize(size) {
- this.$ELEMENT.size = size
- this.$store.dispatch('app/setSize', size)
- this.refreshView()
+ this.$ELEMENT.size = size;
+ this.$store.dispatch("app/setSize", size);
+ this.refreshView();
this.$message({
- message: 'Switch Size Success',
- type: 'success'
- })
+ message: "Switch Size Success",
+ type: "success",
+ });
},
refreshView() {
// In order to make the cached page re-rendered
- this.$store.dispatch('tagsView/delAllCachedViews', this.$route)
+ this.$store.dispatch("tagsView/delAllCachedViews", this.$route);
- const { fullPath } = this.$route
+ const { fullPath } = this.$route;
this.$nextTick(() => {
this.$router.replace({
- path: '/redirect' + fullPath
- })
- })
- }
- }
-
-}
+ path: "/redirect" + fullPath,
+ });
+ });
+ },
+ },
+};
diff --git a/ZR.Vue/src/layout/components/Navbar.vue b/ZR.Vue/src/layout/components/Navbar.vue
index 25997fa..2d0df08 100644
--- a/ZR.Vue/src/layout/components/Navbar.vue
+++ b/ZR.Vue/src/layout/components/Navbar.vue
@@ -14,9 +14,9 @@
-
+
-
+