diff --git a/src/views/component/material/column.js b/src/views/component/material/column.js
index 432795f5a..d1b10ca51 100644
--- a/src/views/component/material/column.js
+++ b/src/views/component/material/column.js
@@ -16,14 +16,14 @@ const materialTemplate = html`
-
+
-
{{item.name}}
+
{{item.name}}
`;
@@ -51,19 +51,18 @@ const materialUnit = defineComponent({
const params = propsValue.data;
const de = params.ascension[0].split("的");
- const zhi = params.ascension[0].split("之");
- const arr = de.length === 1 ? zhi : de;
+ const arr = de.length === 1 ? params.ascension[0].split("之") : de;
const ascensionName = arr[0] || "";
const getMaterialRarityBackground = (materialNameString) => {
const rarity = materialMap[materialNameString] || 4;
const rarities = [undefined, "one-star", "two-star", "three-star", "four-star", "five-star"];
- return rarity ? rarities[rarity] : "four-star";
+ return rarities[rarity];
};
return {
- params,
+ list: params.list,
ascensionName,
itemType: propsValue.type || "character",
materialMap,