fix: repaire style

topwar
guofei 2024-10-17 14:27:53 +08:00
parent 1418128b0d
commit 86d150fb29
3 changed files with 23 additions and 18 deletions

View File

@ -48,26 +48,30 @@ var configMap = {
"ipad-h": { "ipad-h": {
bkg: ipadHPng, bkg: ipadHPng,
rotate: true, rotate: true,
width: "458px", width: "658px",
height: "326px", height: "496px",
offsetv: "5px", offsetv: "5px",
imgStyle: { imgStyle: {
transform: 'rotate(-90deg) scale(1.4)', transform: 'rotate(-90deg)',
width: "506px",
height: "688px",
}, },
styles: { styles: {
transform: "translate(-50%, -50%) scale(1.42)", // transform: "translate(-50%, -50%) scale(1.42)",
} }
}, },
"ipad-v": { "ipad-v": {
bkg: ipadHPng, bkg: ipadHPng,
width: "326px", width: "486px",
height: "458px", height: "648px",
offsetv: "5px", offsetv: "5px",
imgStyle: { imgStyle: {
transform: 'scale(1.4)', // transform: 'scale(1.4)',
width: "506px",
height: "688px",
}, },
styles: { styles: {
transform: "translate(-50%, -50%) scale(1.42)", // transform: "translate(-50%, -50%) scale(1.42)",
} }
}, },
}; };

View File

@ -1,5 +1,6 @@
// var BaseUrl = "https://api.soyootech.com/"; var BaseUrl = "https://api.soyootech.com/";
var BaseUrl = "api/";
// var BaseUrl = "api/";
export async function UserLogin(loginForm) { export async function UserLogin(loginForm) {
try { try {
var response = await fetch(BaseUrl + "SoyooUser/previewlogin", { var response = await fetch(BaseUrl + "SoyooUser/previewlogin", {

View File

@ -1,12 +1,12 @@
const { createProxyMiddleware } = require("http-proxy-middleware"); const { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = function (app) { module.exports = function (app) {
app.use( // app.use(
"/api", // "/api",
createProxyMiddleware({ // createProxyMiddleware({
target: "https://api.soyootech.com/", // target: "https://api.soyootech.com/",
changeOrigin: true, // changeOrigin: true,
pathRewrite: { "^/api": "" }, // pathRewrite: { "^/api": "" },
}) // })
); // );
}; };