[update 友情链接] 完善

This commit is contained in:
danshihao
2024-07-31 18:03:27 +08:00
parent 8474599390
commit 1afa8d0c92
3 changed files with 18 additions and 76 deletions
@@ -19,7 +19,8 @@
</template>
<script>
import { getAction, getFileAccessHttpUrl } from '@/api/manage'
import { getFileAccessHttpUrl } from '@/api/manage'
import { getFriendlyLinkList } from '@api/dashboard'
export default {
name: 'FriendLinkCard',
@@ -27,10 +28,7 @@ export default {
return {
defaultLogo: require('@/assets/image/dashboard/friendship-link.png'),
loading: false,
dataSource: [],
url: {
list: '/sys/lawsFriendlyLinks/list'
}
dataSource: []
}
},
mounted () {
@@ -45,7 +43,7 @@ export default {
},
loadData () {
this.loading = true
getAction(this.url.list, {}).then((res) => {
getFriendlyLinkList({ count: 6 }).then((res) => {
if (res.success) {
this.dataSource = res.result || []
} else {