当前位置:网站首页>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
边栏推荐
- What is test development? Why do so many companies hire test developers now?
- Yuancosmic ecological panorama [2022 latest]
- 线上故障突突突?如何紧急诊断、排查与恢复
- 在线文本行固定长度填充工具
- MySQL winter vacation self-study 2022 11 (9)
- [groovy] groovy environment setup (download groovy | install groovy | configure groovy environment variables)
- 25K 入职腾讯的那天,我特么哭了
- On the day 25K joined Tencent, I cried
- speed or tempo in classical music
- 请问一下我的请求是条件更新,但在buffer中就被拦截了,这种情况我只能每次去flush缓存么?
猜你喜欢
![Quick start of UI component development of phantom engine [umg/slate]](/img/8b/cee092ec1ab105a7e234143bd56861.jpg)
Quick start of UI component development of phantom engine [umg/slate]

Installation of postman and postman interceptor

UE4 DMX和grandMA2 onPC 3.1.2.5的操作流程

MindFusion. Virtual Keyboard for WPF
![[untitled]](/img/e0/52467a7d7604c1ab77038c25608811.png)
[untitled]

What is test development? Why do so many companies hire test developers now?
![[wp][入门]刷弱类型题目](/img/d0/9eb3ade701057837d98e4a20082a10.png)
[wp][入门]刷弱类型题目
![[understand series after reading] 6000 words teach you to realize interface automation from 0 to 1](/img/eb/c944d4a71ce30589e71059ed848899.png)
[understand series after reading] 6000 words teach you to realize interface automation from 0 to 1

ABP vNext microservice architecture detailed tutorial - distributed permission framework (Part 2)

Basic knowledge of tuples
随机推荐
JWT漏洞复现
CTF stegano practice stegano 9
Some enterprise interview questions of unity interview
Pyqt5 displays file names and pictures
请问一下我的请求是条件更新,但在buffer中就被拦截了,这种情况我只能每次去flush缓存么?
An elegant program for Euclid‘s algorithm
Blue Bridge Cup single chip microcomputer -- PWM pulse width modulation
[array]566 Reshape the matrix - simple
How rem is used
lds链接的 顺序问题
优先使用对象组合,而不是类继承
Deep learning - LSTM Foundation
The new project Galaxy token just announced by coinlist is gal
JVM garbage collection
EasyCVR平台出现WebRTC协议视频播放不了是什么原因?
[wp][入门]刷弱类型题目
Redis之Jedis如何使用
Zero foundation uses paddlepaddle to build lenet-5 network
How is the entered query SQL statement executed?
天干地支纪年法中为什么是60年一个轮回,而不是120年