202404 免责声明
This commit is contained in:
@@ -23,14 +23,12 @@
|
||||
"js-cookie": "2.1.4",
|
||||
"jsonlint": "1.6.2",
|
||||
"less-loader": "^4.0.5",
|
||||
"marked": "^12.0.2",
|
||||
"merge": "^1.2.0",
|
||||
"mockjs": "1.0.1-beta3",
|
||||
"moment": "^2.22.0",
|
||||
"normalize.css": "7.0.0",
|
||||
"nprogress": "0.2.0",
|
||||
"querystring": "^0.2.0",
|
||||
"scandir": "^0.1.2",
|
||||
"screenfull": "3.2.2",
|
||||
"showdown": "1.7.1",
|
||||
"simplemde": "1.11.2",
|
||||
|
||||
@@ -4,7 +4,7 @@ import http from '@/utils/http'
|
||||
* 查询免责声明
|
||||
*/
|
||||
export function find() {
|
||||
return http.post('/notice/disclaimers')
|
||||
return http.get('/notice/disclaimers')
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<div class="app-container app-edit">
|
||||
<el-form class="small-space" :model="form" :rules="rules" ref="form" label-position="right" label-width="120px" style="width: 700px;">
|
||||
<!-- 简介 -->
|
||||
<el-form-item label="简介" prop="description">
|
||||
<el-form-item label="免责声明" prop="description">
|
||||
<tinymce :height="300" v-model="form.description" id='tinymce' style="width:900px"></tinymce>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<script>
|
||||
import Sticky from '@/components/Sticky'
|
||||
import { find, save } from '@/api//about/us'
|
||||
import { find, save } from '@/api/disclaimers/edit'
|
||||
import Tinymce from '@/components/Tinymce'
|
||||
|
||||
export default {
|
||||
@@ -56,18 +56,16 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.form.id = 1
|
||||
this.findById(this.form.id)
|
||||
this.findById()
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 查询关于我们
|
||||
*/
|
||||
findById(id) {
|
||||
find(id).then(response => {
|
||||
this.form.image = response.aboutUs.image
|
||||
this.form.description = response.aboutUs.description
|
||||
this.form.platformId = response.aboutUs.platformId
|
||||
findById() {
|
||||
find().then(response => {
|
||||
this.form.id = response.disclaimers.id
|
||||
this.form.description = response.disclaimers.description
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user