|
|
@@ -59,29 +59,28 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
-import { mapState } from "vuex"
|
|
|
+<script setup>
|
|
|
import { numberToWords } from "pixiu-number-toolkit"
|
|
|
+import { computed, ref, onMounted } from "vue"
|
|
|
+import { useStore } from "vuex"
|
|
|
+const {
|
|
|
+ windowSizeInCssForRef,
|
|
|
+ windowSizeWhenDesignForRef,
|
|
|
+} = useSizeAdapt()
|
|
|
|
|
|
-export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- isExpand: false,
|
|
|
- }
|
|
|
- },
|
|
|
- computed: {
|
|
|
- ...mapState([
|
|
|
- 'data'
|
|
|
- ])
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- },
|
|
|
- methods: {
|
|
|
- int2zh(idx) {
|
|
|
- return numberToWords(idx, "zh")
|
|
|
- }
|
|
|
- },
|
|
|
+const store = useStore()
|
|
|
+
|
|
|
+const data = computed(() => {
|
|
|
+ return store.state.data
|
|
|
+})
|
|
|
+
|
|
|
+function int2zh(idx) {
|
|
|
+ return numberToWords(idx, "zh")
|
|
|
}
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ store.commit('resetRelicListScrollValue')
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|