diff --git a/index.html b/index.html index 13d25065..830bf1f8 100644 --- a/index.html +++ b/index.html @@ -12,5 +12,4 @@
- diff --git a/src/api/article.js b/src/api/article.js index 6f541127..2583f0d0 100644 --- a/src/api/article.js +++ b/src/api/article.js @@ -1,16 +1,25 @@ -import fetch from 'utils/fetch' +import fetch from '@/utils/fetch' -export function getList() { +export function fetchList(query) { return fetch({ url: '/article/list', - method: 'get' + method: 'get', + params: query }) } -export function getArticle() { +export function fetchArticle() { return fetch({ url: '/article/detail', method: 'get' }) } +export function fetchPv(pv) { + return fetch({ + url: '/article/pv', + method: 'get', + params: { pv } + }) +} + diff --git a/src/api/article_table.js b/src/api/article_table.js deleted file mode 100644 index f4ae1af4..00000000 --- a/src/api/article_table.js +++ /dev/null @@ -1,17 +0,0 @@ -import fetch from 'utils/fetch' - -export function fetchList(query) { - return fetch({ - url: '/article_table/list', - method: 'get', - params: query - }) -} - -export function fetchPv(pv) { - return fetch({ - url: '/article_table/pv', - method: 'get', - params: { pv } - }) -} diff --git a/src/api/login.js b/src/api/login.js index 4f61222e..16775960 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,4 +1,4 @@ -import fetch from 'utils/fetch' +import fetch from '@/utils/fetch' export function loginByUsername(username, password) { const data = { diff --git a/src/api/qiniu.js b/src/api/qiniu.js index 59e82a37..a5facdc0 100644 --- a/src/api/qiniu.js +++ b/src/api/qiniu.js @@ -1,4 +1,4 @@ -import fetch from 'utils/fetch' +import fetch from '@/utils/fetch' export function getToken() { return fetch({ diff --git a/src/api/remoteSearch.js b/src/api/remoteSearch.js index 6ba64443..01ca9109 100644 --- a/src/api/remoteSearch.js +++ b/src/api/remoteSearch.js @@ -1,4 +1,4 @@ -import fetch from 'utils/fetch' +import fetch from '@/utils/fetch' export function userSearch(name) { return fetch({ diff --git a/src/components/Github/index.vue b/src/components/Github/index.vue new file mode 100644 index 00000000..cd2677ca --- /dev/null +++ b/src/components/Github/index.vue @@ -0,0 +1,13 @@ + + diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index 9d174bb7..ceca3c81 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -8,6 +8,7 @@ diff --git a/src/views/dashboard/editor/lineChart.vue b/src/views/dashboard/admin/lineChart.vue similarity index 97% rename from src/views/dashboard/editor/lineChart.vue rename to src/views/dashboard/admin/lineChart.vue index 2b17f0ba..59aa61e6 100644 --- a/src/views/dashboard/editor/lineChart.vue +++ b/src/views/dashboard/admin/lineChart.vue @@ -5,7 +5,7 @@ - - diff --git a/src/views/dashboard/editor/index.vue b/src/views/dashboard/editor/index.vue index 8ce93317..07f30ee6 100644 --- a/src/views/dashboard/editor/index.vue +++ b/src/views/dashboard/editor/index.vue @@ -1,100 +1,32 @@ diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index c62149c1..e347595d 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,35 +1,33 @@ diff --git a/src/views/errorPage/401.vue b/src/views/errorPage/401.vue index 5e265287..888e9df6 100644 --- a/src/views/errorPage/401.vue +++ b/src/views/errorPage/401.vue @@ -27,7 +27,7 @@ +