Browse Source

Merge remote-tracking branch 'origin/dev' into dev

yanj 1 day ago
parent
commit
206a39cd07
1 changed files with 1 additions and 12 deletions
  1. 1 12
      main.js

+ 1 - 12
main.js

@@ -114,18 +114,7 @@ Vue.prototype.loadFontFace = function(fontFamily) {
 	const fontUrls = {
 		'Poppins': 'https://oss.starify.cn/test/Poppins-Regular.ttf'
 	}
-	if (fontFamily === 'Poppins') {
-		// 开发者工具没有该字体
-		wx.getSystemInfo({
-		  success(res) {
-		    // if (res.platform === 'devtools') {
-					loadCloudFontFace(fontUrls[fontFamily], fontFamily + '.ttf', fontFamily)
-		    // }
-		  }
-		})
-	} else {
-		loadCloudFontFace(fontUrls[fontFamily], fontFamily + '.ttf', fontFamily)
-	}
+	loadCloudFontFace(fontUrls[fontFamily], fontFamily + '.ttf', fontFamily)
 }
 
 App.mpType = 'app'