李志伟 3 년 전
부모
커밋
55d6292853
5개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 1
    1
      src/components/Question/edit.vue
  2. 1
    1
      src/components/Question/index.vue
  3. 1
    1
      src/router/index.js
  4. 7
    7
      src/views/gameManage/edit.vue
  5. 1
    1
      vue.config.js

+ 1
- 1
src/components/Question/edit.vue 파일 보기

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

+ 1
- 1
src/components/Question/index.vue 파일 보기

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

+ 1
- 1
src/router/index.js 파일 보기

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

+ 7
- 7
src/views/gameManage/edit.vue 파일 보기

@@ -67,17 +67,17 @@
67 67
             <Question
68 68
               ref="Question"
69 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 74
           </el-col>
75 75
           <el-col :span="12">
76 76
             <QuestionEdit
77 77
               ref="QuestionEdit"
78
-              :questionId='questionId'
79
-              :gameId='gameId'
80
-              :resultMode='gameForm.resultMode'
78
+              :questionId="questionId"
79
+              :gameId="gameId"
80
+              :resultMode="gameForm.resultMode"
81 81
               @handleRefreshQuestion="handleRefreshQuestion"
82 82
               @handleEditQuestion="handleEditQuestion"
83 83
             />
@@ -198,7 +198,7 @@ export default {
198 198
   }
199 199
 }
200 200
 </script>
201
-<style>
201
+<style scoped>
202 202
 .gameForm{
203 203
   width: 700px;
204 204
   margin: auto;

+ 1
- 1
vue.config.js 파일 보기

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