Browse Source

取消列表页默认一条的情况

master
aBin 3 years ago
parent
commit
b50481f7d1
  1. 12
      .env.production
  2. 6
      src/components/ListPage/ListPage.vue

12
.env.production

@ -1,10 +1,10 @@
VUE_APP_MODE=production VUE_APP_MODE=production
VUE_APP_NODE_ENV=production VUE_APP_NODE_ENV=production
VUE_APP_SCENE=/v1.0/datang/ VUE_APP_SCENE=/datang/
VUE_APP_BASE_URL=http://127.0.0.1:8000 VUE_APP_BASE_URL=https://test.tall.wiki
VUE_APP_API_URL=http://127.0.0.1:8000/v1.0 VUE_APP_API_URL=https://test.tall.wiki/datang/v1.0
VUE_APP_PROXY_URL=/v1.0 VUE_APP_PROXY_URL=/datang/v1.0
VUE_APP_PUBLIC_PATH=/v1.0/datang VUE_APP_PUBLIC_PATH=/datang
VUE_APP_MSG_URL=wss://127.0.0.1:8000/websocket/message/v4.0/ws VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
VUE_APP_TITLE=大唐 VUE_APP_TITLE=大唐
VUE_APP_DESCRIPTION=大唐 VUE_APP_DESCRIPTION=大唐

6
src/components/ListPage/ListPage.vue

@ -79,9 +79,9 @@ export default {
if (this.code !== 'search') { if (this.code !== 'search') {
this.getYear(); this.getYear();
} }
if (this.content && this.content.list && this.content.list.length === 1) { // if (this.content && this.content.list && this.content.list.length === 1) {
this.openPage(this.content.list[0].introId); // this.openPage(this.content.list[0].introId);
} // }
}, },
methods: { methods: {
onChange(pageNumber) { onChange(pageNumber) {

Loading…
Cancel
Save