diff --git a/src/api/theme.js b/src/api/theme.js index b9e6b6558..cf3e36c0e 100644 --- a/src/api/theme.js +++ b/src/api/theme.js @@ -4,7 +4,7 @@ const baseUrl = '/api/admin/themes' const themeApi = {} -themeApi.listAll = () => { +themeApi.list = () => { return service({ url: `${baseUrl}`, method: 'get' @@ -133,63 +133,6 @@ themeApi.fetching = url => { }) } -themeApi.fetchingBranches = url => { - return service({ - url: `${baseUrl}/fetchingBranches`, - timeout: 60000, - params: { - uri: url - }, - method: 'post' - }) -} - -themeApi.fetchingReleases = url => { - return service({ - url: `${baseUrl}/fetchingReleases`, - timeout: 60000, - params: { - uri: url - }, - method: 'post' - }) -} - -themeApi.fetchingBranch = (url, branchName) => { - return service({ - url: `${baseUrl}/fetchBranch`, - timeout: 60000, - params: { - uri: url, - branch: branchName - }, - method: 'get' - }) -} - -themeApi.fetchingLatestRelease = url => { - return service({ - url: `${baseUrl}/fetchLatestRelease`, - timeout: 60000, - params: { - uri: url - }, - method: 'get' - }) -} - -themeApi.fetchingRelease = (url, tagName) => { - return service({ - url: `${baseUrl}/fetchingRelease`, - timeout: 60000, - params: { - uri: url, - tag: tagName - }, - method: 'get' - }) -} - themeApi.getContent = path => { return service({ url: `${baseUrl}/files/content`, diff --git a/src/styles/global.less b/src/styles/global.less index 5856f59d9..c8fac75f7 100644 --- a/src/styles/global.less +++ b/src/styles/global.less @@ -859,7 +859,11 @@ body { } .ant-affix { - z-index: 2000!important; + z-index: 1000!important; +} + +.v-note-wrapper { + z-index: 999!important; } #nprogress { diff --git a/src/views/interface/ThemeEdit.vue b/src/views/interface/ThemeEdit.vue index 11aeed90f..dcaef350f 100644 --- a/src/views/interface/ThemeEdit.vue +++ b/src/views/interface/ThemeEdit.vue @@ -132,7 +132,7 @@ export default { handleListThemes() { this.themesLoading = true themeApi - .listAll() + .list() .then((response) => { this.themes = response.data.data }) diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index ac481e822..09bff1b2a 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -162,13 +162,13 @@ 更多主题请访问: https://halo.run/p/themes - - - - - 发行版 - 开发版 - - - - - {{ item.branch }} - - - - - {{ item.branch }} - + - + - - -