摘要:
/* 横屏 */ @media only screen and (orientation: landscape) { } 阅读全文
摘要:
vite.config.js , import.meta.env undefined import {defineConfig, loadEnv} from 'vite'; export default defineConfig(({ command, mode }) => { // 根据当前工作目 阅读全文
摘要:
background: 传入参数 background: url('@{url}/statics/icon.png'); 阅读全文
摘要:
https://www.cnblogs.com/huangcong/p/9517123.html 阅读全文
摘要:
非根目录配置 1、vite配置文件中base:'/test' 绝对路径 2、createWebHistory:createWebHistory('/test') 绝对路径 3、nginx location /test { try_files $uri $uri/ /test/index.html; 阅读全文
摘要:
将所以的\n换行符号替换为'' str.replace(/\n/g, '') 阅读全文
摘要:
情况一:"ECONNABORTED" : 超时,外网访问 情况二:404 vite server 本地未配置代理 情况三:断网 阅读全文
摘要:
"ECONNABORTED" : 超时,外网访问 404 vite server 本地未配置代理 阅读全文