mirror of https://github.com/halo-dev/halo-admin
JSLint.
parent
70b85cf76f
commit
5725103c4b
|
@ -19,7 +19,6 @@ linkApi.create = (link) => {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
linkApi.get = linkId => {
|
||||
return service({
|
||||
url: `${baseUrl}/${linkId}`,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="footer">
|
||||
<div class="copyright">
|
||||
Proudly power by
|
||||
Proudly power by
|
||||
<router-link :to="{ name:'About' }">
|
||||
<a href="javascript:void(0);">Halo</a>
|
||||
</router-link>
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
<a-tab-pane
|
||||
key="internal"
|
||||
>
|
||||
<span slot="tab">
|
||||
<a-icon type="pushpin" />内置页面
|
||||
</span>
|
||||
<span slot="tab">
|
||||
<a-icon type="pushpin" />内置页面
|
||||
</span>
|
||||
<a-table
|
||||
:columns="internalColumns"
|
||||
:dataSource="internalPages"
|
||||
|
@ -49,10 +49,10 @@
|
|||
<a-tab-pane
|
||||
key="custom"
|
||||
>
|
||||
<span slot="tab">
|
||||
<a-icon type="fork" />内置页面
|
||||
</span>
|
||||
自定义页面</a-tab-pane>
|
||||
<span slot="tab">
|
||||
<a-icon type="fork" />内置页面
|
||||
</span>
|
||||
自定义页面</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
</a-col>
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
<template>
|
||||
<div class="page-header-index-wide">
|
||||
<a-row :gutter="12">
|
||||
<a-col :xl="10" :lg="10" :md="10" :sm="24" :xs="24" :style="{ 'padding-bottom': '12px' }">
|
||||
<a-col
|
||||
:xl="10"
|
||||
:lg="10"
|
||||
:md="10"
|
||||
:sm="24"
|
||||
:xs="24"
|
||||
:style="{ 'padding-bottom': '12px' }">
|
||||
<a-card :title="title">
|
||||
<a-form layout="horizontal">
|
||||
<a-form-item label="网站名称:">
|
||||
|
@ -29,7 +35,13 @@
|
|||
</a-form>
|
||||
</a-card>
|
||||
</a-col>
|
||||
<a-col :xl="14" :lg="14" :md="14" :sm="24" :xs="24" :style="{ 'padding-bottom': '12px' }">
|
||||
<a-col
|
||||
:xl="14"
|
||||
:lg="14"
|
||||
:md="14"
|
||||
:sm="24"
|
||||
:xs="24"
|
||||
:style="{ 'padding-bottom': '12px' }">
|
||||
<a-card title="所有友情链接">
|
||||
<a-table
|
||||
:columns="columns"
|
||||
|
@ -135,13 +147,14 @@ export default {
|
|||
createOrUpdateLink() {
|
||||
if (this.link.id) {
|
||||
linkApi.update(this.link.id, this.link).then(response => {
|
||||
this.loadLinks()
|
||||
this.$message.success('更新成功!')
|
||||
})
|
||||
} else {
|
||||
linkApi.create(this.link).then(response => {
|
||||
this.loadLinks()
|
||||
this.$message.success('保存成功!')
|
||||
})
|
||||
}
|
||||
this.loadLinks()
|
||||
this.link = {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue