diff --git a/.env.dev b/.env.dev index a9d58fdc..8ce815d4 100644 --- a/.env.dev +++ b/.env.dev @@ -5,8 +5,8 @@ ENV = 'development' VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.1.49:48080' -# VUE_APP_BASE_API = 'http://192.168.0.33:48080' +# VUE_APP_BASE_API = 'http://192.168.1.49:48080' +VUE_APP_BASE_API = 'http://192.168.0.33:48080' # VUE_APP_BASE_API = 'http://192.168.1.188:48080' # 路由懒加载 diff --git a/src/views/core/base/equipment/components/EquipmentPics.vue b/src/views/core/base/equipment/components/EquipmentPics.vue index 388407fa..b0e4e2df 100644 --- a/src/views/core/base/equipment/components/EquipmentPics.vue +++ b/src/views/core/base/equipment/components/EquipmentPics.vue @@ -7,7 +7,12 @@ @@ -20,7 +25,7 @@ export default { return { images: Array(10) .fill(1) - .map((_, index) => `../assets/eq${index + 1}.jpg`), + .map((_, index) => require(`../assets/eq${index + 1}.jpg`)), }; }, computed: {}, @@ -30,8 +35,48 @@ export default { diff --git a/src/views/core/base/equipment/index.vue b/src/views/core/base/equipment/index.vue index 73aec659..b6be3305 100644 --- a/src/views/core/base/equipment/index.vue +++ b/src/views/core/base/equipment/index.vue @@ -300,6 +300,10 @@ export default { label: '设备图片', prop: 'fileUrls', subcomponent: EquipmentPics, + pictures: async () => { + // some async request + return [] + }, style: 'overflow-x: auto;' }, ],