李志伟 3 years ago
parent
commit
55d6292853

+ 1
- 1
src/components/Question/edit.vue View File

209
   }
209
   }
210
 }
210
 }
211
 </script>
211
 </script>
212
-<style lang="scss">
212
+<style scoped lang="scss">
213
 .answerli {
213
 .answerli {
214
   width: 100%;
214
   width: 100%;
215
   overflow: hidden;
215
   overflow: hidden;

+ 1
- 1
src/components/Question/index.vue View File

101
   }
101
   }
102
 }
102
 }
103
 </script>
103
 </script>
104
-<style lang="scss">
104
+<style scoped lang="scss">
105
 .questionli {
105
 .questionli {
106
   width: 100%;
106
   width: 100%;
107
   overflow: hidden;
107
   overflow: hidden;

+ 1
- 1
src/router/index.js View File

140
 const router = createRouter()
140
 const router = createRouter()
141
 
141
 
142
 // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
142
 // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
143
-export function resetRouter () {
143
+export function resetRouter() {
144
   const newRouter = createRouter()
144
   const newRouter = createRouter()
145
   router.matcher = newRouter.matcher // reset router
145
   router.matcher = newRouter.matcher // reset router
146
 }
146
 }

+ 7
- 7
src/views/gameManage/edit.vue View File

67
             <Question
67
             <Question
68
               ref="Question"
68
               ref="Question"
69
               :gameId='gameId'
69
               :gameId='gameId'
70
-              @handleAddQuestion='questionId = undefined'
71
-              @handleCloseQuestion='questionId = undefined'
72
-              @handleEditQuestion='handleEditQuestion'
70
+              @handleAddQuestion="questionId = undefined"
71
+              @handleCloseQuestion="questionId = undefined"
72
+              @handleEditQuestion="handleEditQuestion"
73
             />
73
             />
74
           </el-col>
74
           </el-col>
75
           <el-col :span="12">
75
           <el-col :span="12">
76
             <QuestionEdit
76
             <QuestionEdit
77
               ref="QuestionEdit"
77
               ref="QuestionEdit"
78
-              :questionId='questionId'
79
-              :gameId='gameId'
80
-              :resultMode='gameForm.resultMode'
78
+              :questionId="questionId"
79
+              :gameId="gameId"
80
+              :resultMode="gameForm.resultMode"
81
               @handleRefreshQuestion="handleRefreshQuestion"
81
               @handleRefreshQuestion="handleRefreshQuestion"
82
               @handleEditQuestion="handleEditQuestion"
82
               @handleEditQuestion="handleEditQuestion"
83
             />
83
             />
198
   }
198
   }
199
 }
199
 }
200
 </script>
200
 </script>
201
-<style>
201
+<style scoped>
202
 .gameForm{
202
 .gameForm{
203
   width: 700px;
203
   width: 700px;
204
   margin: auto;
204
   margin: auto;

+ 1
- 1
vue.config.js View File

35
       '/api': {
35
       '/api': {
36
         target: 'http://192.168.89.147:8080',
36
         target: 'http://192.168.89.147:8080',
37
         changeOrigin: true
37
         changeOrigin: true
38
-      },
38
+      }
39
     }
39
     }
40
     // port: port,
40
     // port: port,
41
     // overlay: {
41
     // overlay: {