Browse Source

更新代码

xiaoming_global 5 years ago
parent
commit
f36007ba16
1 changed files with 8 additions and 10 deletions
  1. 8 10
      src/pages/product/index.vue

+ 8 - 10
src/pages/product/index.vue View File

37
 
37
 
38
 <script>
38
 <script>
39
 export default {
39
 export default {
40
-  name: "Product",
41
-  data() {
40
+  name: 'Product',
41
+  data () {
42
     return {}
42
     return {}
43
   },
43
   },
44
   computed: {
44
   computed: {
45
-    avatar: function() {
45
+    avatar: function () {
46
       var avatar = this.$store.getters.user.user.avatar
46
       var avatar = this.$store.getters.user.user.avatar
47
-      return avatar.length > 0 ? avatar : require("@/assets/product/test.jpg")
47
+      return avatar.length > 0 ? avatar : require('@/assets/product/test.jpg')
48
     }
48
     }
49
   },
49
   },
50
   methods: {
50
   methods: {
51
-    doctorEnterAction: function() {
52
-      this.$store.dispatch("SwitchRoleTypeToDoctor")
53
-      this.$router.push({path: "/main"})
51
+    doctorEnterAction: function () {
52
+      this.$store.dispatch('SwitchRoleTypeToDoctor')
53
+      this.$router.push({path: '/main'})
54
       // this.$router.push({path: "/layout"})
54
       // this.$router.push({path: "/layout"})
55
-      console.log(".")
56
     }
55
     }
57
   }
56
   }
58
-};
57
+}
59
 </script>
58
 </script>
60
 
59
 
61
 <style style="stylesheet/scss" lang="scss" scoped >
60
 <style style="stylesheet/scss" lang="scss" scoped >
160
   }
159
   }
161
 }
160
 }
162
 </style>
161
 </style>
163
-