当前位置:网站首页>How does the applet solve the rendering layer network layer error?
How does the applet solve the rendering layer network layer error?
2022-07-05 03:57:00 【Chu Junjun】
Use uni-app A small hole in developing small programs :
In the development process , An error is reported :
[ Render layer network layer error ] Failed to load font http://172.16.0.234:8081/profile/upload/style.ttf net::ERR_CONNECTION_TIMED_OUT (env: Windows,mp,1.05.2109131; lib: 2.20.2)
When other methods cannot solve it , We can set the global variable mechanism to solve
Use globalData( Global variable mechanism . This mechanism is in uni-app You can also use , And universal at all ends )
uni-app Official website uni-app: A use Vue.js Develop a front-end framework for cross platform applications https://uniapp.dcloud.io/collocation/App?id=globaldata stay APP.vue Join in
<script>
export default {
data() {
return {
code: null,
sessionKey: null,
signature: null,
rawData: null,
encryptedData: null,
iv: null,
}
},
globalData: {
baseUrl: 'https://xxxxx.xxxxzg.com/web-api/'
//baseUrl: 'http://172.16.0.xxx:8081'
},
onLaunch: function() {
this.globalData
},
onLoad() {
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
},
methods: {
}
}
</script>
<style>
/* Every page is public css */
body {
font-family: 'PingFang-SC-Regular';
}
@font-face {
font-family: 'PingFang-SC-Regular'; // Create a number_font Font name
/* src: url("http://172.16.0.234:8081/profile/upload/style.ttf"); // Import local font source file */
/* src: url("https://exercise.zjyqzg.com/web-api//profile/upload/style.ttf"); // Import local font source file */
}
::-webkit-scrollbar {
display: none !important;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
}
</style>
Then use it in the corresponding page
边栏推荐
- On the day 25K joined Tencent, I cried
- [vérification sur le Web - divulgation du code source] obtenir la méthode du code source et utiliser des outils
- [punch in questions] integrated daily 5-question sharing (phase III)
- grandMA2 onPC 3.1.2.5的DMX参数摸索
- UI自动化测试从此告别手动下载浏览器驱动
- CTF stegano practice stegano 9
- postman和postman interceptor的安装
- About authentication services (front and back, login, registration and exit, permission management)
- IronXL for .NET 2022.6
- JVM garbage collection
猜你喜欢
It took two nights to get Wu Enda's machine learning course certificate from Stanford University
Subversive cognition: what does SRE do?
我就一写代码的,王总整天和我谈格局...
Use of vscode software
Plasticscm enterprise crack
Containerd series - detailed explanation of plugins
NEW:Devart dotConnect ADO.NET
[luat-air105] 4.1 file system FS
ActiveReportsJS 3.1 VS ActiveReportsJS 3.0
【软件逆向-分析工具】反汇编和反编译工具
随机推荐
NEW:Devart dotConnect ADO. NET
[positioning in JS]
v-if VS v-show 2.0
On the day 25K joined Tencent, I cried
[wp]bmzclub writeup of several questions
UI自動化測試從此告別手動下載瀏覽器驅動
Yuancosmic ecological panorama [2022 latest]
Multimedia query
Necessary fonts for designers
error Couldn‘t find a package.json file in “你的路径“
Clickhouse materialized view
Deep learning - LSTM Foundation
【web源码-代码审计方法】审计技巧及审计工具
Technology sharing swift defense programming
A brief introduction to the behavior tree of unity AI
[move pictures up, down, left and right through the keyboard in JS]
Redis source code analysis: redis cluster
[web Audit - source code disclosure] obtain source code methods and use tools
Use of vscode software
Operation flow of UE4 DMX and grandma2 onpc 3.1.2.5