diff --git a/src/assets/avatar/1.webp b/src/assets/avatar/1.webp new file mode 100644 index 0000000..3d73117 Binary files /dev/null and b/src/assets/avatar/1.webp differ diff --git a/src/assets/avatar/10.webp b/src/assets/avatar/10.webp new file mode 100644 index 0000000..10f21e2 Binary files /dev/null and b/src/assets/avatar/10.webp differ diff --git a/src/assets/avatar/11.webp b/src/assets/avatar/11.webp new file mode 100644 index 0000000..ecc50db Binary files /dev/null and b/src/assets/avatar/11.webp differ diff --git a/src/assets/avatar/12.webp b/src/assets/avatar/12.webp new file mode 100644 index 0000000..081e7df Binary files /dev/null and b/src/assets/avatar/12.webp differ diff --git a/src/assets/avatar/2.webp b/src/assets/avatar/2.webp new file mode 100644 index 0000000..0bc86c4 Binary files /dev/null and b/src/assets/avatar/2.webp differ diff --git a/src/assets/avatar/3.webp b/src/assets/avatar/3.webp new file mode 100644 index 0000000..0dba547 Binary files /dev/null and b/src/assets/avatar/3.webp differ diff --git a/src/assets/avatar/4.webp b/src/assets/avatar/4.webp new file mode 100644 index 0000000..74223d1 Binary files /dev/null and b/src/assets/avatar/4.webp differ diff --git a/src/assets/avatar/5.webp b/src/assets/avatar/5.webp new file mode 100644 index 0000000..0da367b Binary files /dev/null and b/src/assets/avatar/5.webp differ diff --git a/src/assets/avatar/6.webp b/src/assets/avatar/6.webp new file mode 100644 index 0000000..9371cd6 Binary files /dev/null and b/src/assets/avatar/6.webp differ diff --git a/src/assets/avatar/7.webp b/src/assets/avatar/7.webp new file mode 100644 index 0000000..e5251ea Binary files /dev/null and b/src/assets/avatar/7.webp differ diff --git a/src/assets/avatar/8.webp b/src/assets/avatar/8.webp new file mode 100644 index 0000000..f470b1e Binary files /dev/null and b/src/assets/avatar/8.webp differ diff --git a/src/assets/avatar/9.webp b/src/assets/avatar/9.webp new file mode 100644 index 0000000..aec865f Binary files /dev/null and b/src/assets/avatar/9.webp differ diff --git a/src/components/UserSelect.vue b/src/components/UserSelect.vue new file mode 100644 index 0000000..968b82e --- /dev/null +++ b/src/components/UserSelect.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/src/store/user.ts b/src/store/user.ts new file mode 100644 index 0000000..1a109d0 --- /dev/null +++ b/src/store/user.ts @@ -0,0 +1,70 @@ +import { reactive } from 'vue' + +const getAvatar = (name: string) => { + return new URL(`../assets/avatar/${name}`, import.meta.url).href +} + +export const user = reactive({ + game: [ + { + id: 1, + name: '小桂子Guinevere', + avatar: getAvatar('1.webp') + }, + { + id: 2, + name: '实名上网', + avatar: getAvatar('2.webp') + }, + { + id: 3, + name: '无敌剑士123', + avatar: getAvatar('3.webp') + }, + { + id: 4, + name: '裳裳唯一账号', + avatar: getAvatar('4.webp') + }, + { + id: 5, + name: '无情的卜算机器', + avatar: getAvatar('5.webp') + }, + { + id: 6, + name: '用牌玩命', + avatar: getAvatar('6.webp') + }, + { + id: 7, + name: '风雨彩虹7854', + avatar: getAvatar('7.webp') + }, + { + id: 8, + name: '持明上网', + avatar: getAvatar('8.webp') + }, + { + id: 9, + name: '下雪大衣', + avatar: getAvatar('9.webp') + }, + { + id: 10, + name: '寒冷乌鸦', + avatar: getAvatar('10.webp') + }, + { + id: 11, + name: '尾巴小跟班', + avatar: getAvatar('11.webp') + }, + { + id: 12, + name: '赵相机', + avatar: getAvatar('12.webp') + } + ] +})