mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 10:55:43 +08:00
规范utools引用
This commit is contained in:
@@ -142,16 +142,22 @@
|
||||
|
||||
<script>
|
||||
import features from "js/options/quickFeatures.js";
|
||||
import { utoolsFull } from "js/utools.js";
|
||||
|
||||
export default {
|
||||
name: "UtilityFeaturesMenu",
|
||||
data() {
|
||||
return {
|
||||
utools: utoolsFull,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
toggleFeature(type, enable) {
|
||||
enable
|
||||
? this.$root.utools.whole.setFeature(
|
||||
? this.utools.setFeature(
|
||||
window.lodashM.cloneDeep(features[type])
|
||||
)
|
||||
: this.$root.utools.whole.removeFeature(features[type].code);
|
||||
: this.utools.removeFeature(features[type].code);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -103,6 +103,7 @@ import UtilityFeaturesMenu from "./UtilityFeaturesMenu.vue";
|
||||
import EnvConfigMenu from "./EnvConfigMenu.vue";
|
||||
import PersonalizeMenu from "./PersonalizeMenu.vue";
|
||||
import UserData from "../popup/UserData.vue";
|
||||
import { utoolsFull } from "js/utools.js";
|
||||
|
||||
export default {
|
||||
name: "ConfigurationMenu",
|
||||
@@ -121,6 +122,7 @@ export default {
|
||||
showAbout: false,
|
||||
showPanelConf: false,
|
||||
showUserData: false,
|
||||
utools: utoolsFull,
|
||||
};
|
||||
},
|
||||
props: {
|
||||
@@ -140,7 +142,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
unMarkTag() {
|
||||
this.$root.utools.whole.removeFeature(
|
||||
this.utools.removeFeature(
|
||||
`panel_${window.hexEncode(this.currentTag)}`
|
||||
);
|
||||
window.lodashM.pull(
|
||||
|
||||
Reference in New Issue
Block a user