This commit is contained in:
2026-06-10 11:59:12 +08:00
parent 2ba6599543
commit 97af0505b2
@@ -6,11 +6,12 @@
<div class="equ-profile-item"> <div class="equ-profile-item">
<div class="mr-10px row-name">当前部位</div> <div class="mr-10px row-name">当前部位</div>
<span>{{ part == '11' ? '誓约' : `星蕴石-${parseInt(part) + 1}` }}</span> <span>{{ part == '11' ? '誓约' : `星蕴石-${parseInt(part) + 1}` }}</span>
<!-- <calc-checkbox <calc-checkbox
style="margin-left: auto" style="margin-left: auto"
v-model="global_change" v-model="global_change"
label="全局修改" label="全局修改"
></calc-checkbox> --> v-if="part !== '11'"
></calc-checkbox>
</div> </div>
<div class="equ-profile-item" v-if="part !== '11'"> <div class="equ-profile-item" v-if="part !== '11'">
<div class="row-name">调适</div> <div class="row-name">调适</div>
@@ -39,15 +40,15 @@
<script lang="ts" setup name="Oaths"> <script lang="ts" setup name="Oaths">
import Oath from '@/components/dnf/Equipment/Oath/index.vue' import Oath from '@/components/dnf/Equipment/Oath/index.vue'
import { useConfigStore } from '@/stores' import { useConfigStore, useInfoStore } from '@/stores'
const part = ref('0') const part = ref('0')
// const global_change = ref(false) const global_change = ref(false)
const configStore = useConfigStore() const configStore = useConfigStore()
// const infoStore = useInfoStore() const infoStore = useInfoStore()
const currentInfo = function <T>(name: string, defaultValue?: T) { const currentInfo = function <T>(name: string, defaultValue?: T) {
return computed<T>({ return computed<T>({
@@ -65,8 +66,12 @@ const currentInfo = function <T>(name: string, defaultValue?: T) {
// // configStore.setForge(part.value, name, 0) // // configStore.setForge(part.value, name, 0)
// return // return
// } // }
let parts: string[] = []
const parts: string[] = [part.value] if (global_change.value) {
parts = infoStore.oathParts
} else {
parts = [part.value]
}
for (const part of parts) { for (const part of parts) {
if (!configStore.config.oaths[part]) { if (!configStore.config.oaths[part]) {