diff --git a/src/App.vue b/src/App.vue index 41ffaed1..b8dbeb87 100644 --- a/src/App.vue +++ b/src/App.vue @@ -335,7 +335,9 @@ export default { const Type = computed(() => store.state.config.$Type) const Lang = computed(() => store.state.config.$lang) const showMenu = computed(() => store.state.config.showMenu) - const chipArry = computed(() => store.state.config.chipArry) + const chipArry = computed(() => + store.state.config.chipArry.filter(v => v.value != 20) + ) const fullScreen = computed(() => store.state.config.fullScreen) const showAplayer = computed(() => store.state.config.showAplayer) const showSetFree = computed(() => store.state.config.showSetFree) diff --git a/src/components/PlayChip.vue b/src/components/PlayChip.vue index e35491d2..37f04bbd 100644 --- a/src/components/PlayChip.vue +++ b/src/components/PlayChip.vue @@ -22,7 +22,7 @@ export default { setup() { const store = useStore() const chipArry = computed(() => - store.state.config.chipArry.filter((v) => v.show == true) + store.state.config.chipArry.filter((v) => v.show == true && v.value != 20) ) const chooseChip = computed(() => store.state.app.chooseChip) const chooseFn = (item) => { @@ -85,7 +85,7 @@ export default { /* Map classes to images */ &.chip_1s, &.chip_10 { background-image: url("~@/assets/images/chip/1s.png"); } - &.chip_2s, &.chip_20 { background-image: url("~@/assets/images/chip/1s.png"); } /* Fallback or specific if exists */ + &.chip_5s, &.chip_50 { background-image: url("~@/assets/images/chip/5s.png"); } &.chip_1b, &.chip_100 { background-image: url("~@/assets/images/chip/1b.png"); } &.chip_2b, &.chip_200 { background-image: url("~@/assets/images/chip/2b.png"); } diff --git a/src/store/modules/config.js b/src/store/modules/config.js index 85793abe..45fe50a7 100644 --- a/src/store/modules/config.js +++ b/src/store/modules/config.js @@ -12,9 +12,9 @@ try { sysVolume = sysVolume ? JSON.parse(sysVolume) : { - music: 70, - effects: 70 - } + music: 70, + effects: 70 + } } catch (err) { console.log(err) } @@ -41,7 +41,7 @@ const state = { $Type: localStorage.getItem("language") || "en", chipArry: [ { key: "1s", show: true, value: 10 }, - { key: "2s", show: true, value: 20 }, + { key: "5s", show: true, value: 50 }, { key: "1b", show: true, value: 100 }, { key: "5b", show: true, value: 500 },