File tree Expand file tree Collapse file tree 4 files changed +13
-20
lines changed Expand file tree Collapse file tree 4 files changed +13
-20
lines changed Original file line number Diff line number Diff line change 11# vue-demo
22
33## Project setup
4- ```
4+ ``` bash
55npm install
66```
77
88### Compiles and hot-reloads for development
9- ```
10- npm run serve
9+ ``` bash
10+ # # 复制静态文件 node_modules/ezuikit-js/ezuikit_static 到 public/ezuikit_static
11+ npm run dev
1112```
1213
1314### Compiles and minifies for production
14- ```
15+ ``` bash
1516npm run build
1617```
1718
18- ### Lints and fixes files
19- ```
20- npm run lint
21- ```
22-
2319## QA
2420
2521- 最近 vue2 的老版本在构建 ` ezuikit-js ` 时, 报错 ` You may need an additional loader to handle the result of these loaders ` .
Original file line number Diff line number Diff line change 99 },
1010 "dependencies" : {
1111 "core-js" : " ^3.6.5" ,
12- "ezuikit-js" : " 8.2.0-beta.1 " ,
12+ "ezuikit-js" : " 8.2.0-beta.2 " ,
1313 "vue" : " ^2.7"
1414 },
1515 "devDependencies" : {
Original file line number Diff line number Diff line change 99 <div style =" display : flex ;" >template: <input placeholder =" template" :value =" template" style =" width : 450px ;" @input =" event => template = event.target.value" /></div >
1010 <div style =" display : flex ;" >width: <input placeholder =" width" :value =" width" style =" width : 450px ;" @input =" event => width = event.target.value" /></div >
1111 <div style =" display : flex ;" >height: <input placeholder =" height" :value =" height" style =" width : 450px ;" @input =" event => height = event.target.value" /></div >
12+ <div style =" display : flex ;" >staticPath: <input placeholder =" staticPath" :value =" staticPath" style =" width : 450px ;" @input =" event => staticPath = event.target.value" /></div >
1213 </div >
1314 </div >
1415 </div >
@@ -46,6 +47,7 @@ export default {
4647 template: " pcLive" ,
4748 width: " 100%" ,
4849 height: 400 ,
50+ staticPath: " ./ezuikit_static" ,
4951 };
5052 },
5153 mounted : () => {
@@ -75,7 +77,7 @@ export default {
7577 },
7678 // quality: 1, //
7779 // language: "en", // zh | en
78- staticPath: " /ezuikit_static " , // 如果想使用本地静态资源,请复制根目录下ezuikit_static 到当前目录下, 然后设置该值
80+ staticPath: this . staticPath , // 如果想使用本地静态资源,请复制根目录下ezuikit_static 到当前目录下, 然后设置该值
7981 env: {
8082 // https://open.ys7.com/help/1772?h=domain
8183 // domain默认是 https://open.ys7.com, 如果是私有化部署或海外的环境,请配置对应的domain
You can’t perform that action at this time.
0 commit comments