We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
路由导致取public资源路径错误
#
http://localhost:3100/aaa/#/bbb
http://localhost:3100/aaa/resource/......
/#/
取得v2.3.0版本(最新版本),以组件富文本tinymce为例:
http://localhost:3101/test/aaaa/#/comp/editor/tinymce/index
tinymce.js:1795 GET http://localhost:3101/test/aaaa/resource/tinymce/skins/ui/oxide/skin.min.css net::ERR_ABORTED 404 (Not Found) tinymce.js:1795 GET http://localhost:3101/test/aaaa/resource/tinymce/skins/ui/oxide/content.min.css net::ERR_ABORTED 404 (Not Found)
src/router/index.ts
// app router const router = createRouter({ // history: createWebHashHistory(import.meta.env.VITE_PUBLIC_PATH), history: createWebHistory(import.meta.env.VITE_PUBLIC_PATH), routes: (basicRoutes as unknown) as RouteRecordRaw[], strict: true, scrollBehavior: () => ({ left: 0, top: 0 }), });
输入url地址:http://localhost:3100/comp/editor/tinymce/index 报错:
http://localhost:3100/comp/editor/tinymce/index
tinymce.js:1795 GET http://localhost:3100/comp/editor/tinymce/resource/tinymce/skins/ui/oxide/skin.min.css net::ERR_ABORTED 404 (Not Found) tinymce.js:1795 GET http://localhost:3100/comp/editor/tinymce/resource/tinymce/skins/ui/oxide/content.min.css net::ERR_ABORTED 404 (Not Found)
The text was updated successfully, but these errors were encountered:
a863ad4
fix(tinymce): ensure that the public resource path is correct,fix vbe…
477b5bb
…njs#487
No branches or pull requests
Describe the bug
路由导致取public资源路径错误
#
前误输入其他字符串,则会导致该页面申请public资源文件时,url错误。如:
http://localhost:3100/aaa/#/bbb
: 访问bbb页面如果有public资源文件请求,则url会组成:http://localhost:3100/aaa/resource/......
(多了/#/
前面的误输入字符串)Reproduction
取得v2.3.0版本(最新版本),以组件富文本tinymce为例:
http://localhost:3101/test/aaaa/#/comp/editor/tinymce/index
则报错:更改
src/router/index.ts
输入url地址:
http://localhost:3100/comp/editor/tinymce/index
报错:
System Info
The text was updated successfully, but these errors were encountered: