From 38bcba6bdf89f5e813944012c78d6c610a259d80 Mon Sep 17 00:00:00 2001 From: flykhan Date: Sun, 12 Mar 2023 10:43:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=88=98=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=94=A8=E6=88=B7=E6=8C=87=E7=A4=BA=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/UserIndicator.vue | 59 ++++++++++++++++++++++++++++ web/src/views/pk/PkIndexView.vue | 5 ++- 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 web/src/components/UserIndicator.vue diff --git a/web/src/components/UserIndicator.vue b/web/src/components/UserIndicator.vue new file mode 100644 index 0000000..30a6d8e --- /dev/null +++ b/web/src/components/UserIndicator.vue @@ -0,0 +1,59 @@ +// 用户指示标签 + + + + + \ No newline at end of file diff --git a/web/src/views/pk/PkIndexView.vue b/web/src/views/pk/PkIndexView.vue index 09bf63a..afc8640 100644 --- a/web/src/views/pk/PkIndexView.vue +++ b/web/src/views/pk/PkIndexView.vue @@ -1,5 +1,6 @@ @@ -8,6 +9,7 @@ import PlayGround from "../../components/PlayGround.vue"; import MatchGround from "../../components/MatchGround.vue"; import ResultBoard from "../../components/ResultBoard.vue"; +import UserIndicator from "../../components/UserIndicator.vue" // onMounted 用于组件被挂载时, onUnmounted 用于组件被解除挂载时 import { onMounted, onUnmounted } from "vue"; @@ -18,7 +20,8 @@ export default { components: { PlayGround, MatchGround, - ResultBoard + ResultBoard, + UserIndicator }, // 创建前后端连接:当当前页面组件被加载时,建立连接,故使用 onMounted 函数 setup() {