[update 友情链接] 完善
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user