diff --git a/front_end/src/components/PlayerName.vue b/front_end/src/components/PlayerName.vue index 6357baf7..4cdbebcb 100644 --- a/front_end/src/components/PlayerName.vue +++ b/front_end/src/components/PlayerName.vue @@ -1,16 +1,15 @@ - - {{ data.user_name }} + + {{ data.user_name + }} @@ -54,7 +54,6 @@ import image_url_default from '@/assets/person.png'; const image_url = ref(image_url_default); // import PreviewDownload from '@/components/PreviewDownload.vue'; import PreviewNumber from '@/components/PreviewNumber.vue'; -import Wait from '@/components/Wait.vue'; import { useRouter } from 'vue-router' import { ms_to_s } from "@/utils" const router = useRouter() @@ -93,12 +92,14 @@ const e_bvs_id = ref(""); const is_loading = ref(true); -const pop_show = () => { +const pop_show = async () => { + is_loading.value = true; + image_url.value = image_url_default; realname.value = ""; id.value = ""; - proxy.$axios.get('/msuser/info_abstract/', + await proxy.$axios.get('/msuser/info_abstract/', { params: { id: data.user_id, @@ -112,13 +113,13 @@ const pop_show = () => { if (response_data.avatar) { image_url.value = "data:image/;base64," + response_data.avatar; } - + const records = JSON.parse(response_data.record_abstract) b_t.value = ms_to_s(records.timems[0]) i_t.value = ms_to_s(records.timems[1]) e_t.value = ms_to_s(records.timems[2]) - + b_t_id.value = records.timems_id[0] i_t_id.value = records.timems_id[1] e_t_id.value = records.timems_id[2] @@ -155,6 +156,7 @@ const pop_hide = () => { b_bvs_id.value = ""; i_bvs_id.value = ""; e_bvs_id.value = ""; + is_loading.value = true; } function to_fixed_n(input: string | number | undefined, to_fixed: number): string | number | undefined { diff --git a/front_end/src/components/Wait.vue b/front_end/src/components/Wait.vue deleted file mode 100644 index 9b736deb..00000000 --- a/front_end/src/components/Wait.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - - \ No newline at end of file