|
@@ -37,25 +37,24 @@
|
37
|
37
|
|
38
|
38
|
<script>
|
39
|
39
|
export default {
|
40
|
|
- name: "Product",
|
41
|
|
- data() {
|
|
40
|
+ name: 'Product',
|
|
41
|
+ data () {
|
42
|
42
|
return {}
|
43
|
43
|
},
|
44
|
44
|
computed: {
|
45
|
|
- avatar: function() {
|
|
45
|
+ avatar: function () {
|
46
|
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
|
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
|
54
|
// this.$router.push({path: "/layout"})
|
55
|
|
- console.log(".")
|
56
|
55
|
}
|
57
|
56
|
}
|
58
|
|
-};
|
|
57
|
+}
|
59
|
58
|
</script>
|
60
|
59
|
|
61
|
60
|
<style style="stylesheet/scss" lang="scss" scoped >
|
|
@@ -160,4 +159,3 @@ export default {
|
160
|
159
|
}
|
161
|
160
|
}
|
162
|
161
|
</style>
|
163
|
|
-
|