修改博客接口调用1

master
于肖磊 2025-11-24 09:40:49 +08:00
parent e50720eaa9
commit b9178c95e2
1 changed files with 2 additions and 6 deletions

View File

@ -39,7 +39,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import commonApi from '@/api/common'; import UrlValueAPI from '@/api/url-value';
import { commonStore } from '@/store'; import { commonStore } from '@/store';
import { get_data_list } from '@/utils'; import { get_data_list } from '@/utils';
const common_store = commonStore(); const common_store = commonStore();
@ -53,10 +53,6 @@ const props = defineProps({
type: Boolean, type: Boolean,
default: () => false, default: () => false,
}, },
linkUrl: {
type: String,
default: '',
},
// //
selectIsUrl: { selectIsUrl: {
type: Boolean, type: Boolean,
@ -113,7 +109,7 @@ const get_list = (new_page: number) => {
page_size: page_size.value, page_size: page_size.value,
}; };
loading.value = true; loading.value = true;
commonApi.getDynamicApi(props.linkUrl, new_data).then((res: any) => { UrlValueAPI.getblogList(new_data).then((res: any) => {
tableData.value = res.data.data_list; tableData.value = res.data.data_list;
if (res.data.data_list.length === 0) { if (res.data.data_list.length === 0) {
empty_text.value = '暂无数据'; empty_text.value = '暂无数据';