File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed
resources/assets/js/views/article Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change 103
103
</template >
104
104
105
105
<script >
106
- import { fetchList , deleteArticle , batchUpdateArticle , sitemap } from ' @/api/article'
106
+ import { fetchList , deleteArticle , batchUpdateArticle } from ' @/api/article'
107
107
import { mapGetters } from ' vuex'
108
108
import Sticky from ' @/components/Sticky' // 粘性header组件
109
109
@@ -146,27 +146,6 @@ export default {
146
146
if (this .$store .state .user .list .length === 0 ) { this .getUserList () }
147
147
},
148
148
methods: {
149
- sitemap () {
150
- this .loading = true
151
- sitemap ().then (response => {
152
- if (response .data .err ) {
153
- this .$message ({
154
- message: response .data .err ,
155
- type: ' error'
156
- })
157
- } else {
158
- this .$notify ({
159
- title: ' 成功' ,
160
- type: ' success' ,
161
- duration: 2000 ,
162
- message: ' 生成Sitemap成功!'
163
- })
164
- }
165
- this .loading = false
166
- }).catch (err => {
167
- console .log (err)
168
- })
169
- },
170
149
getCategoryList () {
171
150
this .$store .dispatch (' GetCategoryList' )
172
151
},
You can’t perform that action at this time.
0 commit comments