Open MarkGor opened 1 year ago
👋 @MarkGor,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
♥️ 有劳 @uyarn 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @MarkGor 。
会提供的
执行npm run build
报以下错:
> second@0.6.1 build
> vue-tsc --noEmit && vite build --mode release
src/utils/request/Axios.ts:66:44 - error TS2345: Argument of type '(config: AxiosRequestConfig) => AxiosRequestConfig<any>' is not assignable to parameter of type '(value: InternalAxiosRequestConfig<any>) => InternalAxiosRequestConfig<any> | Promise<InternalAxiosRequestConfig<any>>'.
Type 'AxiosRequestConfig<any>' is not assignable to type 'InternalAxiosRequestConfig<any> | Promise<InternalAxiosRequestConfig<any>>'.
Type 'AxiosRequestConfig<any>' is not assignable to type 'InternalAxiosRequestConfig<any>'.
Types of property 'headers' are incompatible.
Type 'AxiosHeaders | (Partial<RawAxiosHeaders & { Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; Authorization: AxiosHeaderValue; } & { ...; }> & Partial<...>)' is not assignable to type 'AxiosRequestHeaders'.
Type 'Partial<RawAxiosHeaders & { Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; Authorization: AxiosHeaderValue; } & { ...; }> & Partial<...>' is not assignable to type 'AxiosRequestHeaders'.
Type 'Partial<RawAxiosHeaders & { Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; Authorization: AxiosHeaderValue; } & { ...; }> & Partial<...>' is missing the following properties from type 'AxiosHeaders': set, has, clear, normalize, and 21 more.
66 this.instance.interceptors.request.use((config: AxiosRequestConfig) => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in src/utils/request/Axios.ts:66
会提供的
请问有规划了吗,有预计上线时间吗
会提供的
请问有规划了吗,有预计上线时间吗
🐶 我已学会ts了.....
这个功能解决了什么问题
後端,學了vue2後沒力卷ts和vue3了,希望能提供js版本的手腳架
你建议的方案是什么
希望能提供js版本的手腳架