1 line
998 B
JSON
1 line
998 B
JSON
{"ast":null,"code":"import { mapState } from \"vuex\";\nexport default {\n name: \"SwitchTab\",\n data() {\n return {\n switchVideo: true\n };\n },\n created() {},\n methods: {\n switchVideoFn(type) {\n this.$store.commit(\"config/switchVideo\", type);\n },\n updateVideo(type, choose) {\n this.$store.commit(\"config/updateVideo\", {\n type,\n choose\n });\n }\n },\n computed: {\n ...mapState({\n Lang: state => state.config.$lang,\n Type: state => state.config.$Type,\n userInfo: state => state.app.userInfo,\n video: state => state.config.switchVideo,\n info: state => state.config.video\n })\n },\n watch: {\n video: {\n handler(state) {\n if (state == true) {\n this.switchVideo = true;\n } else {\n this.switchVideo = false;\n }\n },\n immediate: true\n }\n }\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]} |