feat: 封装增删查改函数
This commit is contained in:
@@ -9,13 +9,14 @@ import {
|
||||
Tag,
|
||||
} from "@antmjs/vantui";
|
||||
import { View } from "@tarojs/components";
|
||||
import React, { useCallback } from "react";
|
||||
import React, { useCallback, useEffect } from "react";
|
||||
import { Swiper, SwiperItem, Image } from "@antmjs/vantui";
|
||||
import react from "react";
|
||||
import { NoticeBar } from "@antmjs/vantui";
|
||||
import Taro from "@tarojs/taro";
|
||||
import { Tabbar, TabbarItem } from "@antmjs/vantui";
|
||||
import TabbarCom from "../components/TabbarCom";
|
||||
import { getTable, getTableid } from "../../utils/index";
|
||||
|
||||
const Home = () => {
|
||||
// const { images } = COMMON
|
||||
@@ -27,6 +28,18 @@ const Home = () => {
|
||||
"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg",
|
||||
];
|
||||
|
||||
useEffect(() => {
|
||||
let objParams={
|
||||
tableName: "test",
|
||||
id: "80516fb66370bcf300b8f43c5f4dd52b",
|
||||
okFun: (res) => {
|
||||
console.log("res", res);
|
||||
},
|
||||
}
|
||||
getTable(objParams)
|
||||
getTableid(objParams);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<View>
|
||||
{/* 通知条 */}
|
||||
@@ -126,7 +139,7 @@ const Home = () => {
|
||||
<TabbarItem icon="setting-o">我的</TabbarItem>
|
||||
</Tabbar> */}
|
||||
|
||||
<TabbarCom active={0}/>
|
||||
<TabbarCom active={0} />
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user