Browse Source

上传bug以及ip路径修改

master
aBin 3 years ago
parent
commit
71e4b58c96
  1. BIN
      dist.zip
  2. 3
      src/components/News/index.vue
  3. 1
      src/config.js
  4. 8
      src/views/layout/Layout.vue
  5. 5
      vue.config.js

BIN
dist.zip

Binary file not shown.

3
src/components/News/index.vue

@ -160,6 +160,7 @@
* 获取详情列表
*/
getList(options) {
console.log('options: ', options);
const { pageNum, pageSize, showPage } = this;
const params = {
pageNum,
@ -170,7 +171,7 @@
params.showType = 0
}
if(showPage === '0204'){
params.showPage = '0203'
params.showPage = options.showPage
params.showType = 1
}
if(options){

1
src/config.js

@ -5,6 +5,7 @@ export const client_id = 'test'
export const client_secret = "test"
// export const BASE_API = "https://rapapi.renqilai.com/app/mock/39";
export const BASE_API = "http://10.119.190.12:8000/v1.0";
// export const BASE_API = "https://test.tall.wiki/datang/v1.0";
export const pageSize = 20
export const SHELF_MAX_ROW=7

8
src/views/layout/Layout.vue

@ -26,7 +26,9 @@ export default {
mixins: [ResizeMixin],
watch: {
'$route.path'() {
this.showBtn()
setTimeout(() => {
this.showBtn()
},500)
}
},
computed: {
@ -78,8 +80,12 @@ export default {
}
for(var i = 0; i < perList.length; i++) {
if(perList[i][1] === code) {
console.log('perList[i]: ', perList[i]);
list[perList[i][2]] = true;
}
// if(perList[i][2] === 'reset') {
// console.log('perList[i]: ', perList[i]);
// }
}
this.setShowBtnList(list)
},

5
vue.config.js

@ -4,10 +4,13 @@ var path = require("path");
const BASE_API = "http://10.119.190.12:8000/v1.0"
const proxyUrl = '/v1.0'
// const BASE_API = "https://test.tall.wiki/datang/v1.0"
// const proxyUrl = 'datang/v1.0'
const port = 8080
module.exports = {
publicPath: '/manage',
publicPath: '/v1.0/manage',
devServer: {
open: true,
overlay: {

Loading…
Cancel
Save