gaosp
2024-03-10 3cb45f5e261d22a4ee3e71dd5c588c95469f7d28
src/container/workshop/device.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-13 20:46:33
 * @LastEditors: Sneed
 * @LastEditTime: 2024-03-09 12:47:06
 * @LastEditTime: 2024-03-09 14:20:34
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/workshop/device.vue
-->
<template>
@@ -141,9 +141,9 @@
        this.concern = !!this.info.concern
        console.log(this.$el.getBoundingClientRect().width,'/////',this.$el.getBoundingClientRect().width / 200)
        this.$nextTick(() => {
            if (this.$el.getBoundingClientRect().width <  400) {
                this.$el.querySelector('.device-item-box').style = `transform:scale(${this.$el.getBoundingClientRect().width / 400})`
            }
            //if (this.$el.getBoundingClientRect().width <  400) {
                this.$el.querySelector('.device-item-box').style = `transform:scale(${this.$el.getBoundingClientRect().width / 360})`
            //}
        })