|
|
@@ -196,6 +196,17 @@
|
|
|
draggable="false"
|
|
|
>
|
|
|
</button>
|
|
|
+ <button
|
|
|
+ class="quit"
|
|
|
+ @click="onClickQuit"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class=""
|
|
|
+ src="@/assets/images/icon_home_2.png"
|
|
|
+ alt=""
|
|
|
+ draggable="false"
|
|
|
+ >
|
|
|
+ </button>
|
|
|
</div>
|
|
|
|
|
|
<!-- 让用户选择是否登录、注册 -->
|
|
|
@@ -222,7 +233,7 @@ import { useRoute, useRouter } from "vue-router"
|
|
|
import { useStore } from "vuex"
|
|
|
import ClipboardJS from 'clipboard'
|
|
|
import { showDialog } from 'vant'
|
|
|
-import { logout, getScore } from '@/api.js'
|
|
|
+import { logout, getScore, notifyQuit } from '@/api.js'
|
|
|
import LoginChoice from '@/components/LoginChoice.vue'
|
|
|
|
|
|
const route = useRoute()
|
|
|
@@ -393,6 +404,7 @@ if (route.query.gameIdx) {
|
|
|
router.replace({
|
|
|
name: route.name
|
|
|
})
|
|
|
+ store.commit('setIsDirectPlayGame', true)
|
|
|
if (isShowLoading.value) {
|
|
|
hideLoadingCallback = () => {
|
|
|
onClickGameEntry(gameIdx)
|
|
|
@@ -402,7 +414,9 @@ if (route.query.gameIdx) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-console.log(route.query)
|
|
|
+function onClickQuit() {
|
|
|
+ notifyQuit()
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|