diff --git a/src/config/beings.ts b/src/config/beings.ts
index 08888e4..71db175 100644
--- a/src/config/beings.ts
+++ b/src/config/beings.ts
@@ -52,6 +52,12 @@ export class Attribute {
});
}
}
+
+ copy(attr: Attribute) {
+ Object.keys(attr).forEach((key) => {
+ this[key] = attr[key];
+ });
+ }
}
export class Player {
diff --git a/src/tool/caller/attribute.ts b/src/tool/caller/attribute.ts
index f0533b1..7863f4c 100644
--- a/src/tool/caller/attribute.ts
+++ b/src/tool/caller/attribute.ts
@@ -48,7 +48,8 @@ export const callPlayerAttribute = (player: Player, base: any) => {
attribute.dps = Math.ceil((1 - crit + crit * critdmg) * atk * (1 + dmgPercent));
//计算减伤比例
attribute.reducPercent = callReducPercent(attribute.def, player.lv);
- player.attribute = attribute;
+
+ player.attribute.copy(attribute);
};
/**
diff --git a/src/tool/random.ts b/src/tool/random.ts
index 9cd278c..f87e4f3 100644
--- a/src/tool/random.ts
+++ b/src/tool/random.ts
@@ -1,7 +1,7 @@
import { difficultys, Categorys, qualitys, extra_quality, extra_quality_rate, extra_quality_lv } from '@/config';
import * as Equips from '@/config/equips';
-const types = ['weapon', 'arrmor', 'neck', 'ring', 'jewelry', 'bracers', 'pants', 'shoes'];
+const types = ['weapon', 'armor', 'neck', 'ring', 'jewelry', 'bracers', 'pants', 'shoes'];
const normal: Categorys[] = new Array();
const uniques: Categorys[] = new Array();
const colorfuls: Categorys[] = new Array();
diff --git a/src/views/archive.vue b/src/views/archive.vue
index bf5cd77..dc56177 100644
--- a/src/views/archive.vue
+++ b/src/views/archive.vue
@@ -47,12 +47,23 @@ const showMenu = () => {
}
const copyArchive = () => {
- navigator.clipboard.writeText(archive.value).then(() => {
+ if (navigator.clipboard && window.isSecureContext) {
+ navigator.clipboard.writeText(archive.value).then(() => {
+ commit('set_sys_info', { msg: t('copyArchive.1'), type: 'win' })
+ showMenu();
+ }).catch(() => {
+ commit('set_sys_info', { msg: t('copyArchive.2'), type: 'waring' })
+ });
+ } else {
+ const textField = document.createElement("textarea");
+ textField.innerText = archive.value;
+ document.body.appendChild(textField);
+ textField.select();
+ document.execCommand("copy");
+ textField.remove();
commit('set_sys_info', { msg: t('copyArchive.1'), type: 'win' })
- }, () => {
- commit('set_sys_info', { msg: t('copyArchive.2'), type: 'waring' })
- });
- showMenu();
+ showMenu();
+ }
}
const pasteArchive = () => {
diff --git a/src/views/backpack/player.vue b/src/views/backpack/player.vue
index db5bd73..e780303 100644
--- a/src/views/backpack/player.vue
+++ b/src/views/backpack/player.vue
@@ -89,6 +89,14 @@ onMounted(() => { });
text-align: start;
}
+ .label,
+ .value {
+ div {
+ line-height: 1.5rem;
+ height: 1.5rem;
+ }
+ }
+
}
.equips {
@@ -181,6 +189,14 @@ onMounted(() => { });
text-align: start;
}
+ .label,
+ .value {
+ div {
+ line-height: 1.2rem;
+ height: 1.2rem;
+ }
+ }
+
}
.equips {
diff --git a/src/views/illustrated/illustrated.vue b/src/views/illustrated/illustrated.vue
index b7876f1..47b1ef9 100644
--- a/src/views/illustrated/illustrated.vue
+++ b/src/views/illustrated/illustrated.vue
@@ -3,7 +3,7 @@
-
+
diff --git a/src/views/point/point.vue b/src/views/point/point.vue
index 8665b51..0f7b186 100644
--- a/src/views/point/point.vue
+++ b/src/views/point/point.vue
@@ -213,4 +213,61 @@ onBeforeUnmount(() => {
}
}
+
+@media only screen and (max-width: 768px) {
+
+ .message {
+ padding-bottom: 0.5rem;
+
+ p {
+ margin: 0.5rem;
+ }
+
+ .tips {
+ padding-left: 0.8rem;
+ }
+
+ .btn-div {
+ padding: 0rem;
+ padding-right: 1rem;
+ }
+ }
+
+ .points {
+ padding: 0.1rem;
+ width: 23.5rem;
+
+ .info {
+ padding: 0.2rem;
+ }
+
+ }
+
+ .attributes {
+ padding: 0.05rem 0;
+ }
+
+ .attribute {
+ padding: 0.2rem 0rem;
+
+ p {
+
+ span {
+ margin-left: 0.2rem;
+ }
+ }
+
+ .group {
+
+ input {
+ width: 4rem;
+ color: black;
+ height: 1.8rem;
+ font-size: 0.8rem;
+ }
+
+ }
+ }
+
+}
\ No newline at end of file