GamePortrait/node_modules/.cache/babel-loader/8eed1364aa90e161bff585797ee863096e144c6b1271f5cdc1f6d84018c3f5bb.json

1 line
1.1 KiB
JSON

{"ast":null,"code":"import { showToast } from \"vant\";\nimport { computed } from \"vue\";\nimport { useStore } from \"vuex\";\nexport default {\n name: \"PlayTypePop\",\n props: {},\n setup() {\n const store = useStore();\n const baccaratPlayType = computed(() => store.state.config.baccaratPlayType);\n const showBaccaratPlayType = computed(() => store.state.config.showBaccaratPlayType);\n const Type = computed(() => store.state.config.$Type);\n const Lang = computed(() => store.state.config.$lang);\n const closeBaccaratPlayType = () => {\n store.commit(\"config/showBaccaratPlayType\");\n };\n const chooseType = type => {\n if (type == \"classics\") {\n store.commit(\"config/updateBaccaratPlayType\", type);\n } else {\n showToast(Lang.value[Type.value].not_open);\n }\n };\n return {\n Type,\n Lang,\n baccaratPlayType,\n showBaccaratPlayType,\n chooseType,\n closeBaccaratPlayType\n };\n }\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}