mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 04:04:04 +08:00
update files
This commit is contained in:
parent
37587ea685
commit
627d176ea8
@ -23,7 +23,7 @@ window.addEventListener('DOMContentLoaded', function (){
|
|||||||
el: '#app',
|
el: '#app',
|
||||||
data: {
|
data: {
|
||||||
activeIndex: 0,
|
activeIndex: 0,
|
||||||
configure: {}
|
configure: { projects: [] }
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
'save-configure': function (){
|
'save-configure': function (){
|
||||||
@ -36,6 +36,7 @@ window.addEventListener('DOMContentLoaded', function (){
|
|||||||
switch (command) {
|
switch (command) {
|
||||||
case 'refresh':
|
case 'refresh':
|
||||||
app.activeIndex = 0;
|
app.activeIndex = 0;
|
||||||
|
configure.projects = configure.projects || [];
|
||||||
app.configure = configure;
|
app.configure = configure;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ module.exports = Vue.component('app-configure', {
|
|||||||
uniqueCache: function (){
|
uniqueCache: function (){
|
||||||
var cache = {};
|
var cache = {};
|
||||||
|
|
||||||
this.configure.projects && this.configure.projects.forEach(function (project){
|
this.configure.projects.forEach(function (project){
|
||||||
cache[project.name] = true;
|
cache[project.name] = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user