请求接口
This commit is contained in:
@@ -104,7 +104,23 @@
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup></script>
|
||||
<script setup>
|
||||
import { selectByUserId } from '@/api/me/me.js';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
|
||||
async function selectByUserIdAjax() {
|
||||
try {
|
||||
const res = await selectByUserId();
|
||||
console.log(res);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
onLoad(() => {
|
||||
selectByUserId();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
@@ -137,10 +153,8 @@ page {
|
||||
grid-template-rows: repeat(auto, 1fr);
|
||||
grid-column-gap: 28upx;
|
||||
grid-row-gap: 28upx;
|
||||
box-sizing: border-box;
|
||||
padding: 0 28upx;
|
||||
.item {
|
||||
box-sizing: border-box;
|
||||
.item-content {
|
||||
overflow: hidden;
|
||||
background-color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user