[baozhangchao] 3 years ago
parent
commit
fa2742596e
1 changed files with 1 additions and 10 deletions
  1. 1
    10
      src/pages/homePage.vue

+ 1
- 10
src/pages/homePage.vue View File

@@ -21,17 +21,13 @@ import gameTitle from '@/assets/BackImage/首页大标.png'
21 21
 import gameSatrt from '@/assets/ButtonImage/开始游戏.png'
22 22
 import gameRule from '@/assets/ButtonImage/游戏规则.png'
23 23
 import BgMusic from '@/components/BackPage.vue'
24
+import { gameStart } from '@/utils/api.js'
24 25
 
25 26
 export default {
26 27
   setup() {
27 28
     const router = useRouter()
28 29
 
29 30
     const linkTo = () => {
30
-      // 字符串路径
31
-
32
-      // router.push('/about')
33
-
34
-      // 带有路径的对象
35 31
       router.push({
36 32
         path: '/game'
37 33
         // query: {
@@ -40,14 +36,9 @@ export default {
40 36
       })
41 37
     }
42 38
     const goRule = () => {
43
-      // 字符串路径
44
-      // router.push('/about')
45
-
46
-      // 带有路径的对象
47 39
       router.push({
48 40
         path: '/TopRulePage',
49 41
         query: {
50
-          // type: 'top'
51 42
           type: 'rule'
52 43
         }
53 44
       })