mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
面板视图背景图片使用 base64
This commit is contained in:
parent
21d696a4a5
commit
8be2ffa957
@ -431,7 +431,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 修改面板视图背景
|
// 修改面板视图背景
|
||||||
changeBackground(reset = false) {
|
changeBackground(reset = false) {
|
||||||
this.$root.profile.backgroundImg = reset ? null : this.selectFile.path;
|
let base64 = window.getBase64Ico(this.selectFile.path);
|
||||||
|
this.$root.profile.backgroundImg = reset ? null : base64;
|
||||||
this.configurationPage.$forceUpdate();
|
this.configurationPage.$forceUpdate();
|
||||||
},
|
},
|
||||||
// 取消收藏
|
// 取消收藏
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
left: tabBarWidth,
|
left: tabBarWidth,
|
||||||
background:
|
background:
|
||||||
commandCardStyle === 'mini' && $root.profile.backgroundImg
|
commandCardStyle === 'mini' && $root.profile.backgroundImg
|
||||||
? 'url(file:///' + $root.profile.backgroundImg + ')'
|
? `url('${$root.profile.backgroundImg}')`
|
||||||
: 'none',
|
: 'none',
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
}"
|
}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user