+
+
+
+
+ {{ scope.$index }}
+
+
+
+
+ {{ scope.row.title }}
+
+
+
+
+ {{ scope.row.author }}
+
+
+
+
+ {{ scope.row.pageviews }}
+
+
+
+
+ {{ scope.row.status }}
+
+
+
+
+
+ {{ scope.row.display_time }}
+
+
+
+
+
+
+
diff --git a/src/views/usermanage/index.vue b/src/views/usermanage/index.vue
index 55217b1..fc0430a 100644
--- a/src/views/usermanage/index.vue
+++ b/src/views/usermanage/index.vue
@@ -48,6 +48,7 @@
import { getList } from '@/api/table'
export default {
+
filters: {
statusFilter(status) {
const statusMap = {
@@ -65,16 +66,10 @@ export default {
}
},
created() {
- this.fetchData()
+
},
methods: {
- fetchData() {
- this.listLoading = true
- getList().then(response => {
- this.list = response.data.items
- this.listLoading = false
- })
- }
+
}
}
diff --git a/vue.config.js b/vue.config.js
index 5b77dac..25ca79b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -31,13 +31,13 @@ module.exports = {
lintOnSave: false,
productionSourceMap: false,
devServer: {
+ inline: false,
port: port,
open: true,
overlay: {
warnings: false,
errors: true
},
- inline: false,
//before: require('./mock/mock-server.js'),
proxy: {
'/api': {