@@ -44,7 +44,7 @@ const partIcon = computed(() => {
|
||||
const rarityIcon = computed(() => {
|
||||
return (part: string) => {
|
||||
const rarity = Math.floor((props.detail?.[part]?.lv || 0) / 5)
|
||||
console.log(rarity)
|
||||
// console.log(rarity)
|
||||
return new URL(`../Images/rarity/${rarity}.png`, import.meta.url).href
|
||||
}
|
||||
})
|
||||
|
||||
@@ -74,14 +74,18 @@ const mainAttr = computed(() => {
|
||||
})
|
||||
|
||||
const detail = computed(() =>
|
||||
props.suit?.value.replace(/\[([^\[\]技能]+?)\]/g, '<span style="color:#3d9147">[$1]</span>'),
|
||||
props.suit?.value?.replace(
|
||||
/\[(?![^\]]*技能)[^\[\]]+\]/g,
|
||||
(match) => `<span style="color:#3d9147">${match}</span>`,
|
||||
),
|
||||
)
|
||||
|
||||
const bufferDetail = computed(() => {
|
||||
const detail = props.suit?.bufferValue
|
||||
if (!detail || detail == '-') return undefined
|
||||
return props.suit?.bufferValue.replace(
|
||||
/\[(?![^\]]*技能)[^\[\]]+\]/g, match => `<span style="color:#3d9147">${match}</span>`
|
||||
return props.suit?.bufferValue?.replace(
|
||||
/\[(?![^\]]*技能)[^\[\]]+\]/g,
|
||||
(match) => `<span style="color:#3d9147">${match}</span>`,
|
||||
)
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -14,7 +14,7 @@ export default defineComponent({
|
||||
const { state, execute, isLoading } = useAsyncState(
|
||||
async () => {
|
||||
const res = await api.getSkillFromCode(skillCode.value)
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
configStore.config.skills = res.skills
|
||||
const { alert } = useDialog()
|
||||
visible.value = false
|
||||
|
||||
@@ -30,7 +30,7 @@ const weapons = computed(() => {
|
||||
const items = infoStore.equips.filter(
|
||||
(equip) => equip.itemType === '武器' && equip.itemDetailType == '光剑',
|
||||
)
|
||||
console.log(items)
|
||||
// console.log(items)
|
||||
const res: (IEquipment | undefined)[] = []
|
||||
Array.from(new Set(items.map((item) => item.itemDetailType))).forEach((type) => {
|
||||
const weapon = items.filter((item) => item.itemDetailType === type)
|
||||
|
||||
@@ -358,7 +358,7 @@ const curOathSkillInfo = computed(() => {
|
||||
if (!res) {
|
||||
return undefined
|
||||
}
|
||||
console.log(curEquInfo.value?.suit[0])
|
||||
// console.log(curEquInfo.value?.suit[0])
|
||||
return {
|
||||
...res,
|
||||
SkillAttack: parseFloat(res.SkillAttack.toString().split(',')[curOathSkillLv.value.lv - 1]),
|
||||
|
||||
@@ -67,7 +67,7 @@ const clearStandard = () => {
|
||||
|
||||
const chooseCategory = (cat: 'equ' | 'oath') => {
|
||||
type.value = cat
|
||||
console.log(type.value)
|
||||
// console.log(type.value)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ const order = ref<'asc' | 'desc'>('desc')
|
||||
const config = useConfigStore()
|
||||
|
||||
const data = computed(() => {
|
||||
return props.data.sort((a, b) => {
|
||||
return [...props.data].sort((a, b) => {
|
||||
let aValue = 0
|
||||
let bValue = 0
|
||||
if (['cd', 'name'].includes(sort.value)) {
|
||||
|
||||
@@ -208,7 +208,7 @@ const correction = computed(() => {
|
||||
})
|
||||
|
||||
const changeSkillId = (skill: { skillId: string; enable: boolean }) => {
|
||||
console.log(skill)
|
||||
// console.log(skill)
|
||||
if (!skill.enable) return
|
||||
if (activeSkillId.value !== skill.skillId) {
|
||||
activeSkillId.value = skill.skillId
|
||||
@@ -218,7 +218,7 @@ const changeSkillId = (skill: { skillId: string; enable: boolean }) => {
|
||||
const oathSkills = computed(() => {
|
||||
const skillOrder = ['2', '1', '3']
|
||||
|
||||
const res = props.suits.oath?.skills.sort((left, right) => {
|
||||
const res = [...(props.suits.oath?.skills ?? [])].sort((left, right) => {
|
||||
const leftIndex = skillOrder.indexOf(left.skillId)
|
||||
const rightIndex = skillOrder.indexOf(right.skillId)
|
||||
const normalizedLeftIndex = leftIndex === -1 ? skillOrder.length : leftIndex
|
||||
@@ -236,7 +236,7 @@ const oathSkills = computed(() => {
|
||||
|
||||
const equ = (id: string) => {
|
||||
if (props.display == 'oath') {
|
||||
console.log(props.oaths, id)
|
||||
// console.log(props.oaths, id)
|
||||
return infoStore.oaths.find((e) => e.id == id)
|
||||
}
|
||||
return infoStore.equips.find((e) => e.id == id)
|
||||
|
||||
@@ -353,7 +353,7 @@ export const decrypt = (encryptedData: string) => {
|
||||
time: parseInt(decryptedTimestamp),
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
// console.log(e)
|
||||
return {
|
||||
uid: -1,
|
||||
time: 0,
|
||||
|
||||
Reference in New Issue
Block a user