shuishen
2024-01-05 f2e4a9d500d2ae2a0ca0fe9ff8cb050c90ccaa2e
src/views/article/articleComment.vue
@@ -16,7 +16,7 @@
</template>
<script>
  import {
    getList,
    getPageList,
    remove,
    update,
    add,
@@ -26,6 +26,9 @@
  import {
    mapGetters
  } from "vuex";
  import website from '@/config/website'
  export default {
    data() {
      return {
@@ -167,12 +170,21 @@
          ...params,
        };
        this.loading = true;
        getList(page.currentPage, page.pageSize, values).then((res) => {
        getPageList(page.currentPage, page.pageSize, values).then((res) => {
          const data = res.data.data;
          this.page.total = data.total;
          this.dataList = data.records;
          this.dataList.forEach(item => {
            if (item.avatar) {
              // var urls = []
              // var names = item.avatar.split(",")
              // names.forEach(name => {
              //   urls.push(website.minioUrl + name)
              // })
              item.avatar = website.minioUrl + item.avatar
            }
          })
          this.loading = false;
          // this.selectionClear();
        });
      },
      selectionClear() {
@@ -184,4 +196,4 @@
</script>
<style>
</style>
</style>