mirror of
https://github.com/xsf0105/vue3-h5-template.git
synced 2025-04-29 06:06:34 +08:00
apply in prod
This commit is contained in:
parent
ffd8161265
commit
bb698d841d
@ -97,16 +97,19 @@ const app = new Vue({
|
|||||||
```
|
```
|
||||||
before:
|
before:
|
||||||
assetsPublicPath: '/',
|
assetsPublicPath: '/',
|
||||||
|
```
|
||||||
|
```
|
||||||
after:
|
after:
|
||||||
assetsPublicPath: '/wx/otherPath/static',
|
assetsPublicPath: '/wx/otherPath/static',
|
||||||
```
|
```
|
||||||
|
|
||||||
> 2、在写静态资源的时候最好使用相对路径,如:
|
> 2、在写静态资源的时候最好使用相对路径,如:
|
||||||
|
|
||||||
```
|
```
|
||||||
error:
|
error:
|
||||||
background: url(../assets/img/icon.png);
|
background: url(../assets/img/icon.png);
|
||||||
|
```
|
||||||
|
```
|
||||||
right:
|
right:
|
||||||
background: url(./../assets/img/icon.png);
|
background: url(./../assets/img/icon.png);
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user