奋斗不NG
奋斗不NG
  • 发布:2020-04-12 10:57
  • 更新:2020-04-13 09:32
  • 阅读:684

【报Bug】在app上条件编译语句非app平台的代码仍然被编译导致报错

分类:uni-app
/* #ifdef APP-PLUS */  
@font-face {  
    font-family: "iconfont";  
    src: url('/static/fonts/iconfont.ttf') format('truetype');  
}  
/* #endif */  
/* #ifndef APP-PLUS */  
@font-face {  
    font-family: "iconfont";  
    src: url('iconfont.ttf') format('truetype');      
}  
/* #endif */

css中的代码如上,上述编译语句在app调试和发布时候都会报错Error: Can't resolve './iconfont.ttf',
这块的语句明明是做了平台判断的呀

2020-04-12 10:57 负责人:无 分享
已邀请:
DCloud_UNI_FXY

DCloud_UNI_FXY

更新至2.6.12Alpha版本

该问题目前已经被锁定, 无法添加新回复