Closed mercer08 closed 8 months ago
请尽可能提供以下信息:
console.log()
的代码片段import { apiHost } from '@/src/env';
export const host = window.isRN() ? apiHost() : '';
// export const host = 'https://www.fairdesk.com';
console.log('apiHost', host);
export default {
apiOrder: `${host}/order/v1`,
apiConfig: `${host}/config/v1`,
apiUser: `${host}/user/v1`,
};
i18n
.use(backend)
.use(initReactI18next)
.init(
{
load: 'languageOnly',
react: {
useSuspense: false,
},
lng: i18nDefaultKey(),
fallbackLng: i18nDefaultKey(),
debug: false,
parseMissingKeyHandler: () => {
return '';
},
backend: {
loadPath: (lng) => {
console.log(lng);
if (langUrl) {
return langUrl;
}
let ver = langVersion;
if (window.localStorage.getItem('fdweb')) {
const config = JSON.parse(localStorage.getItem('fdweb'));
ver =
config?.langVersion > Number(langVersion)
? config?.langVersion
: langVersion;
}
return `https://www.xxx.com/lang/fdweb/${ver}/${lng[0]}.json`;
},
parse: (data) => JSON.parse(data),
crossDomain: true,
withCredentials: false,
},
interpolation: {
escapeValue: false,
},
},
function (err, t) {
console.log('[Lang is over]');
}
);
http://localhost:3000/__tc/i.html#c3JjL2Jhc2UvY29uc3RhbnQvYXBpVXJsLmpzOjY6MQ== http://localhost:3000/__tc/i.html#c3JjL2Jhc2UvY29uc3RhbnQvaW5kZXguanM6MjM6MQ== http://localhost:3000/__tc/i.html#c3JjL2Jhc2UvbG9jYWwvZmRLb2wuanM6OTA6Mw== http://localhost:3000/__tc/i.html#c3JjL2Jhc2UvbGFuZy9pMThuLmpzOjMxOjEx http://localhost:3000/__tc/i.html#c3JjL2Jhc2UvbGFuZy9pMThuLmpzOjU0Ojc= http://localhost:3000/__tc/i.html#c3JjL2Jhc2UvbGFuZy9pMThuLmpzOjgzOjU=
尝试一下手动在浏览器中打开这个地址,看能否正常跳转 http://localhost:3000/__open-in-editor?file=src/base/lang/i18n.js:83:5
请升级到 v0.2.7 再试一下跳转是否有问题
尝试一下手动在浏览器中打开这个地址,看能否正常跳转 http://localhost:3000/__open-in-editor?file=src/base/lang/i18n.js:83:5
升级到 v0.2.7试了一下,直接在浏览器访问这个也无法打开 vscode,是不是和什么 vscode 配置相关呢
你好,最近插件使用unplugin进行了重构,请安装最新的版本使用,如还存在问题,欢迎另开issus.
m2 pro系统Ventura13.4 package.json
vscode -> 版本: 1.84.0 node -> v16.20.1 npm -> 8.19.4