更改字体大小后重新加载页面
Former-commit-id: 8bd2181aebe2d5bb0031d3f14285d99dd71cd600 [formerly 51cfdcb33fea7ed230623e6af1c6fabf82f46385] [formerly 8bd2181aebe2d5bb0031d3f14285d99dd71cd600 [formerly 51cfdcb33fea7ed230623e6af1c6fabf82f46385] [formerly 8bd2181aebe2d5bb0031d3f14285d99dd71cd600 [formerly 51cfdcb33fea7ed230623e6af1c6fabf82f46385] [formerly 51cfdcb33fea7ed230623e6af1c6fabf82f46385 [formerly 3971f03675e8e0821dbd3f368256e16a994b6e51 [formerly 776505901685f2c95336c3c436d2534b31f398a8]]]]] Former-commit-id: 2f6323c1e76bde0b8ab10eba2a682e1002dbb5db Former-commit-id: f3022bef3c6cbc5a692597c92469bdac1949765b Former-commit-id: ff9779ffcd0a7249242431e09ac9dd1115282d4a [formerly 0ddfd187a6f0078ccb8f6c73b4486221c5a23a06] Former-commit-id: 753bce6ee4c53f6ae3d635d4756562ce75bf5ad1 Former-commit-id: 90faedc34e09c7caea4ab6c86835f19963121d45 Former-commit-id: e51610d40966f4b6ef460e6c350a61e51fbf52c9 Former-commit-id: ce9941f577755eae35b65f684bf2c937fd2aeaac Former-commit-id: dfc181c42686598941822acffe437e596550c01d
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<d2-icon name="font" style="font-size: 16px;"/>
|
||||
</el-button>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="">
|
||||
<el-dropdown-item command="default">
|
||||
<d2-icon :name="iconName('default')" class="d2-mr-5"/>默认
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="medium">
|
||||
@@ -35,20 +35,26 @@ export default {
|
||||
value: {
|
||||
handler (val) {
|
||||
this.$ELEMENT.size = val
|
||||
this.$message({
|
||||
message: `设置尺寸成功 ${val}`,
|
||||
type: 'success'
|
||||
})
|
||||
this.pageKeepAliveClean()
|
||||
const { path } = this.$route
|
||||
this.$router.replace({
|
||||
path: '/redirect' + path
|
||||
})
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapMutations('d2admin/size', [
|
||||
'set'
|
||||
]),
|
||||
...mapMutations({
|
||||
sizeSet: 'd2admin/size/set',
|
||||
pageKeepAliveClean: 'd2admin/page/keepAliveClean'
|
||||
}),
|
||||
handleChange (value) {
|
||||
this.set(value)
|
||||
this.$message({
|
||||
message: `设置尺寸成功 ${value}`,
|
||||
type: 'success'
|
||||
})
|
||||
this.sizeSet(value)
|
||||
},
|
||||
iconName (name) {
|
||||
return name === this.value ? 'dot-circle-o' : 'circle-o'
|
||||
|
||||
Reference in New Issue
Block a user