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

统计图表不显示 #31

Open
1061127386 opened this issue Jan 13, 2023 · 2 comments
Open

统计图表不显示 #31

1061127386 opened this issue Jan 13, 2023 · 2 comments

Comments

@1061127386
Copy link

1061127386 commented Jan 13, 2023

控制台报
Uncaught (in promise) ReferenceError: process is not defined at Proxy.ecinit (qiun-data-charts.eb4273b3.js:formatted:6805:29) at index.af3628b5.js:1:66646
图表文件位置
uniapp-admin/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue
1312行

process.env.BASE_URL 没有被编译

@1061127386
Copy link
Author

1061127386 commented Jan 13, 2023

const { origin } = window.location const rooturl = origin + process.env.BASE_URL
我把基础路径改成这样就可以了
const { origin, pathname } = window.location const rooturl = origin + pathname

@qq370725567
Copy link
Contributor

这个问题应该已经修复了,你可以尝试下最新版

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

2 participants