mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
清空数据时停用所有实用功能
This commit is contained in:
@@ -212,7 +212,7 @@
|
||||
<q-item-section side>
|
||||
<q-icon name="delete" />
|
||||
</q-item-section>
|
||||
<q-item-section>删除所有命令</q-item-section>
|
||||
<q-item-section>清空数据</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
@@ -455,6 +455,13 @@ export default {
|
||||
toggleFeature(type) {
|
||||
this.$root.utools.whole.removeFeature(this.features[type].code) ||
|
||||
this.$root.utools.whole.setFeature(_.cloneDeep(this.features[type]));
|
||||
if (
|
||||
type === "apiServer" &&
|
||||
!this.$root.profile.quickFeatures.apiServer.enable
|
||||
) {
|
||||
window.quickcommandHttpServer().stop();
|
||||
this.$root.profile.quickFeatures.apiServer.serverStatus = false;
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user