切换主题bugfix
This commit is contained in:
parent
73ead46873
commit
19d3a16034
@ -247,7 +247,7 @@ export default {
|
||||
const themeStr = `colorTheme: ${colorTheme}`;
|
||||
let settingsStr = (customSettingStr && customSettingStr.trim()) || '# 增加您的自定义配置覆盖默认配置';
|
||||
settingsStr = settingsStr.indexOf('colorTheme:') > -1 ?
|
||||
settingsStr.replace(/colorTheme:.*/, themeStr) : `${settingsStr}\n${themeStr}`;
|
||||
settingsStr.replace(/.*colorTheme:.*/, themeStr) : `${settingsStr}\n${themeStr}`;
|
||||
commit('setItem', itemTemplate('settings', settingsStr));
|
||||
badgeSvc.addBadge('switchTheme');
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user