全局:优化请求的提示

This commit is contained in:
YunaiV
2024-01-20 17:28:04 +08:00
parent 33d57fd7e5
commit 22139d9a2d
15 changed files with 172 additions and 110 deletions
+2 -2
View File
@@ -17,7 +17,7 @@
<script setup>
import { reactive } from 'vue';
import { onLoad, onPageScroll } from '@dcloudio/uni-app';
import DiyPageApi from "@/sheep/api/promotion/diy/page";
import DiyApi from '@/sheep/api/promotion/diy';
const state = reactive({
name: '',
@@ -36,7 +36,7 @@
}
// #endif
const { code, data } = await DiyPageApi.getDiyPage(id);
const { code, data } = await DiyApi.getDiyPage(id);
if (code === 0) {
state.name = data.name;
state.components = data.property?.components;