From 86d150fb297482137d2ceb6b8c9a20ff07134527 Mon Sep 17 00:00:00 2001 From: guofei Date: Thu, 17 Oct 2024 14:27:53 +0800 Subject: [PATCH] fix: repaire style --- src/Components/deviceFrame/index.js | 20 ++++++++++++-------- src/apis/loginApi.js | 5 +++-- src/setupProxy.js | 16 ++++++++-------- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/Components/deviceFrame/index.js b/src/Components/deviceFrame/index.js index ca8c314..8df9589 100644 --- a/src/Components/deviceFrame/index.js +++ b/src/Components/deviceFrame/index.js @@ -48,26 +48,30 @@ var configMap = { "ipad-h": { bkg: ipadHPng, rotate: true, - width: "458px", - height: "326px", + width: "658px", + height: "496px", offsetv: "5px", imgStyle: { - transform: 'rotate(-90deg) scale(1.4)', + transform: 'rotate(-90deg)', + width: "506px", + height: "688px", }, styles: { - transform: "translate(-50%, -50%) scale(1.42)", + // transform: "translate(-50%, -50%) scale(1.42)", } }, "ipad-v": { bkg: ipadHPng, - width: "326px", - height: "458px", + width: "486px", + height: "648px", offsetv: "5px", imgStyle: { - transform: 'scale(1.4)', + // transform: 'scale(1.4)', + width: "506px", + height: "688px", }, styles: { - transform: "translate(-50%, -50%) scale(1.42)", + // transform: "translate(-50%, -50%) scale(1.42)", } }, }; diff --git a/src/apis/loginApi.js b/src/apis/loginApi.js index 2823738..63115d3 100644 --- a/src/apis/loginApi.js +++ b/src/apis/loginApi.js @@ -1,5 +1,6 @@ -// var BaseUrl = "https://api.soyootech.com/"; -var BaseUrl = "api/"; +var BaseUrl = "https://api.soyootech.com/"; + +// var BaseUrl = "api/"; export async function UserLogin(loginForm) { try { var response = await fetch(BaseUrl + "SoyooUser/previewlogin", { diff --git a/src/setupProxy.js b/src/setupProxy.js index 9316ff4..2026793 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -1,12 +1,12 @@ const { createProxyMiddleware } = require("http-proxy-middleware"); module.exports = function (app) { - app.use( - "/api", - createProxyMiddleware({ - target: "https://api.soyootech.com/", - changeOrigin: true, - pathRewrite: { "^/api": "" }, - }) - ); + // app.use( + // "/api", + // createProxyMiddleware({ + // target: "https://api.soyootech.com/", + // changeOrigin: true, + // pathRewrite: { "^/api": "" }, + // }) + // ); };