1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 21:29:31 +08:00

update: 移除node_modules依赖

This commit is contained in:
小莫唐尼
2024-07-11 11:24:11 +08:00
parent d0b3a42c1d
commit d22224e2fc
15 changed files with 45 additions and 1284 deletions
+2 -21
View File
@@ -90,7 +90,6 @@ import tmIcons from '@/tm-vuetify/components/tm-icons/tm-icons.vue';
import tmEmpty from '@/tm-vuetify/components/tm-empty/tm-empty.vue';
import eSwiper from '@/components/e-swiper/e-swiper.vue';
import qs from 'qs'
export default {
components: {
@@ -209,15 +208,8 @@ export default {
});
};
const paramsStr = qs.stringify(this.queryParams, {
allowDots: true,
encodeValuesOnly: true,
skipNulls: true,
encode: true,
arrayFormat: 'repeat'
})
uni.request({
url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?' + paramsStr,
url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts',
method: 'GET',
params: this.queryParams,
success: (res) => {
@@ -241,25 +233,14 @@ export default {
},
// 文章列表
fnGetArticleList() {
// uni.showLoading({
// mask: true,
// title: '加载中...'
// });
// 设置状态为加载中
if (!this.isLoadMore) {
this.loading = 'loading';
}
this.loadMoreText = '加载中...';
const paramsStr = qs.stringify(this.queryParams, {
allowDots: true,
encodeValuesOnly: true,
skipNulls: true,
encode: true,
arrayFormat: 'repeat'
})
uni.request({
url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?' + paramsStr,
url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?',
method: 'GET',
params: this.queryParams,
success: (res) => {