Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望提供js版本 #241

Open
MarkGor opened this issue Apr 20, 2023 · 6 comments
Open

希望提供js版本 #241

MarkGor opened this issue Apr 20, 2023 · 6 comments
Assignees

Comments

@MarkGor
Copy link

MarkGor commented Apr 20, 2023

这个功能解决了什么问题

後端,學了vue2後沒力卷ts和vue3了,希望能提供js版本的手腳架

你建议的方案是什么

希望能提供js版本的手腳架

@github-actions
Copy link

👋 @MarkGor,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link

♥️ 有劳 @uyarn 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @MarkGor

@uyarn
Copy link
Collaborator

uyarn commented Apr 20, 2023

会提供的

@miller806
Copy link

执行 npm run build报以下错:

> [email protected] 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

@zyp1573
Copy link

zyp1573 commented Jul 13, 2023

会提供的

请问有规划了吗,有预计上线时间吗

@MarkGor
Copy link
Author

MarkGor commented Jul 18, 2023

会提供的

请问有规划了吗,有预计上线时间吗

🐶 我已学会ts了.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants