Commit f4023914 authored by 邓晓峰's avatar 邓晓峰

fix: 修复url-loader打包视频路径问题

parent 35391263
Pipeline #22842 skipped with stages
This diff was suppressed by a .gitattributes entry.
......@@ -160,6 +160,7 @@ module.exports = options => ({
loader: 'url-loader',
options: {
limit: 10000,
outputPath: '/video/',
},
},
},
......
This diff was suppressed by a .gitattributes entry.
......@@ -522,7 +522,7 @@ const Login = forwardRef((props, _ref) => {
return (
<div className={styles.main}>
<video
src="https://panda-water.cn/web4/assets/videos/beforPage.mp4"
src={require("../../../assets/videos/beforPage.mp4") }
className={styles.videLayer}
autoPlay="autoPlay"
muted
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment