diff --git a/mock/article.ts b/mock/article.ts index ec3579fa7..8f7fa5cc2 100644 --- a/mock/article.ts +++ b/mock/article.ts @@ -75,17 +75,17 @@ export default [ }, { - url: '/article/pv', + url: '/article/pageviews', type: 'get', response: (_: any) => { return { code: 20000, data: { - pvData: [ - { key: 'PC', pv: 1024 }, - { key: 'mobile', pv: 1024 }, - { key: 'ios', pv: 1024 }, - { key: 'android', pv: 1024 } + pageviewsData: [ + { key: 'PC', pageviews: 1024 }, + { key: 'mobile', pageviews: 1024 }, + { key: 'ios', pageviews: 1024 }, + { key: 'android', pageviews: 1024 } ] } } diff --git a/mock/index.ts b/mock/index.ts index 85852ee22..e881f7e2a 100644 --- a/mock/index.ts +++ b/mock/index.ts @@ -4,13 +4,13 @@ import { param2Obj } from '@/utils' import user from './user' import role from './role' import article from './article' -import remoteSearch from './remote-serach' +import search from './remote-serach' const mocks = [ ...user, ...role, ...article, - ...remoteSearch + ...search ] // For frontend mock diff --git a/public/favicon.ico b/public/favicon.ico index 34b63ac63..a5a67cca4 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/manifest.json b/public/manifest.json index 2e4b13c47..0db1db957 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -15,6 +15,6 @@ ], "start_url": "./index.html", "display": "standalone", - "background_color": "#000000", + "background_color": "#fff", "theme_color": "#4DBA87" } diff --git a/src/api/article.ts b/src/api/article.ts index 3e0c96aca..aede9a1e5 100644 --- a/src/api/article.ts +++ b/src/api/article.ts @@ -50,11 +50,11 @@ export const fetchArticleDetail = (id: string) => params: { id } }) -export const fetchPageviews = (pv: string) => +export const fetchPageviews = (pageviews: string) => request({ - url: '/article/pv', + url: '/article/pageviews', method: 'get', - params: { pv } + params: { pageviews } }) export const createArticle = (data: any) => diff --git a/src/views/table/complex-table.vue b/src/views/table/complex-table.vue index 0103a1f60..208e8bc18 100644 --- a/src/views/table/complex-table.vue +++ b/src/views/table/complex-table.vue @@ -328,11 +328,11 @@ {{ $t('table.confirm') }} @@ -422,8 +422,8 @@ export default class ComplexTable extends Vue { update: 'Edit', create: 'Create' } - private dialogPvVisible = false - private pvData = [] + private dialogPageviewsVisible = false + private pageviewsData = [] private rules = { type: [{ required: true, message: 'type is required', trigger: 'change' }], timestamp: [{ type: 'number', required: true, message: 'timestamp is required', trigger: 'change' }], @@ -556,10 +556,10 @@ export default class ComplexTable extends Vue { this.list.splice(index, 1) } - private handlefetchPageviews(pv: string) { - fetchPageviews(pv).then(response => { - this.pvData = response.data.pvData - this.dialogPvVisible = true + private handlefetchPageviews(Pageviews: string) { + fetchPageviews(Pageviews).then(response => { + this.pageviewsData = response.data.pageviewsData + this.dialogPageviewsVisible = true }) }