diff --git a/README.md b/README.md
index 17472cd..a3c3e50 100644
--- a/README.md
+++ b/README.md
@@ -83,7 +83,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
-## 要饭
+## 饿饿饭饭
TRON / TRX:TPaSnHJ2cRCQjjv7TyAFJDamb3mZSSz1At
diff --git a/config/vite.config.base.ts b/config/vite.config.base.ts
index eb62972..b80322e 100644
--- a/config/vite.config.base.ts
+++ b/config/vite.config.base.ts
@@ -73,5 +73,21 @@ export default defineConfig({
javascriptEnabled: true,
},
},
+ postcss: {
+ plugins: [
+ require('postcss-px-to-viewport')({
+ viewportWidth: 2560, // 视口宽度,对应设计稿宽度
+ viewporHeight: 1392, // 视口高度,对应设计稿高度
+ unitPrecision: 3, // 指定px转换之后的小数位数
+ viewportUnit: 'vw', // 转换的单位
+ fontViewportUnit: 'vw', // 字体使用的单位
+ replace: false, // 是否直接更换属性值,而不添加备用属性
+ selectorBlackList: ['.ignore', '.hairlines', '.arco', '.layout'], // 指定不转换的类
+ exclude: /(\/|\\)(node_modules)(\/|\\)/, //禁止更改第三方UI框架样式
+ minPixelValue: 15, // 小于或等于1px不转换
+ mediaQuery: true, // 允许在媒体查询中转换
+ })
+ ]
+ }
},
});
diff --git a/package.json b/package.json
index 6c4493e..74ad025 100644
--- a/package.json
+++ b/package.json
@@ -67,6 +67,7 @@
"less": "^4.1.3",
"mockjs": "^1.1.0",
"postcss-html": "^1.5.0",
+ "postcss-px-to-viewport": "^1.1.1",
"prettier": "^2.7.1",
"rollup": "^3.9.1",
"rollup-plugin-visualizer": "^5.8.2",
diff --git a/src/views/dashboard/workplace/components/banner.vue b/src/views/dashboard/workplace/components/banner.vue
index 240efe2..26c003d 100644
--- a/src/views/dashboard/workplace/components/banner.vue
+++ b/src/views/dashboard/workplace/components/banner.vue
@@ -21,15 +21,35 @@