This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import Taro from "@tarojs/taro";
|
||||
import MerList from "@/components/MerList.vue";
|
||||
import {ref, onMounted} from 'vue';
|
||||
import Taro from '@tarojs/taro';
|
||||
import MerList from '@/components/MerList.vue';
|
||||
|
||||
const classId = ref<null | number>(null);
|
||||
const classId = ref();
|
||||
|
||||
Taro.useLoad((e) => {
|
||||
onMounted(() => {
|
||||
const e = Taro.getCurrentInstance().router?.params as any;
|
||||
Taro.setNavigationBarTitle({
|
||||
title: e.name,
|
||||
});
|
||||
@@ -14,9 +15,7 @@ Taro.useLoad((e) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view>
|
||||
<MerList :classId="classId" />
|
||||
</view>
|
||||
<MerList v-model="classId" />
|
||||
</template>
|
||||
|
||||
<style lang="scss"></style>
|
||||
|
||||
Reference in New Issue
Block a user