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

切换后端时导航错误 #808

Open
DavidDiao opened this issue Dec 15, 2023 · 0 comments
Open

切换后端时导航错误 #808

DavidDiao opened this issue Dec 15, 2023 · 0 comments

Comments

@DavidDiao
Copy link

我自己部署的,没有放在根目录下面

https://github.com/haishanh/yacd/blob/master/src/components/backend/BackendList.tsx#L75

      if (currIdx === idx) {
        navigate('/', { replace: true });
      } else {
        setCurrIdx(idx);
        await sleep(32);
        // manual clean up is too complex
        // we just reload the app
        try {
          window.location.href = '/';
        } catch (err) {
          // ignore
        }
      }

这里切换后端的时候导航到了根目录下面,应该改成window.location.href = '#/';比较好 懒得发pr了

另外我的后端没有/providers/rules,大概是版本问题,导致我打不开规则,这有什么办法解决吗

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

1 participant