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() {