Does not work with npm run dev. Failed to load resource: net::ERR_EMPTY_RESPONSE What is interesting, that http://localhost:5173/ just returns a This page isn’t working. Then when I go to localhost, console shows: Failed to load resource: net::ERR_EMPTY_RESPONSE and its trying this ...
fix: use correct publicDir in ERR_LOAD_PUBLIC_URL (#14847) (66caef3), closes #14847 fix(define): correctly replace same define values (#14786) (f36fcd2), closes #14786 fix(deps): update all non-major dependencies (#14729) (d5d96e7), closes #14729 fix(worker): force rollup to...
65//禁止出现空函数66"no-empty-function": "warn",67//禁用不必要的嵌套块68"no-lone-blocks": "warn",69//禁止使用多个空格70"no-multi-spaces": "warn",71//禁止多次声明同一变量72"no-redeclare": "warn",73//禁止在 return 语句中使用赋值...
process.stderr :\n createWritableStdioStream(fd);\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n return 'colors' in exports.inspectOpts\n ? Boolean(exports.inspectOpts.colors)\n : tty.isatty(fd);\n}\n\n/**\n * Map ...
axios.interceptors.response.use((res) => { if (res.data.code === 111) { sessionStorage.setItem('token', '') // token过期操作 } return res }) interface ResType<T> { code: number data?: T msg: string err?: string } interface Http { ...
handleGeneralError( res.data.data?.code || res.data.code, res.data.data?.msg || res.data.msg ), res ); if (isErrorObject(res)) { const err = res as AxiosError; handleNetworkError(err.response?.status); reject(err); } console.log(res.data); if (!res) reject("请求失败"); ...
log('ok', err.message)) .catch(err => console.log('error', err.message)) ee.emit('error', new Error('boom')) // Prints: ok boom An AbortSignal can be used to cancel waiting for the event: const { EventEmitter, once } = require('events') const ee = new EventEmitter() const ...
(不影响代码执行)* "error" 或 2 ==> 规则作为一个错误(代码不能执行,界面报错)*/rules: {// eslint(https://eslint.bootcss.com/docs/rules/)'no-var':'error',// 要求使用 let 或 const 而不是 var'no-multiple-empty-lines': ['warn', {max:1}],// 不允许多个空行'no-console': ...
==eqeqeq:'warn',// 禁止 if 语句中 return 语句之后有 else 块'no-else-return':'warn',// 禁止出现空函数'no-empty-function':'warn',// 禁用不必要的嵌套块'no-lone-blocks':'warn',// 禁止使用多个空格'no-multi-spaces':'warn',// 禁止多次声明同一变量'no-redeclare':'warn',// 禁止在 ...
{ return error } ) // 响应拦截 axios.interceptors.response.use((res) => { if (res.data.code === 111) { sessionStorage.setItem('token', '') // token过期操作 } return res }) interface ResType<T> { code: number data?: T msg: string err?: string } interface Http { get<T>(...