小程序入门——Wim7安装后打开黑屏

今天开始捣鼓小程序,注册和安装就遇到些许问题

一个是既有的微信公众平台号,不能用来开发小程序了(为啥呢?

另一个是安装了开发工具之后,无法打开,或者说打开就是黑屏。

简单来说就是打开是下面这个样子的。

   

百度了之后,方法各种各样:改系统配置、下载32位版本、显卡驱动。。

尝试过后都无效。

最后发现了一个网站,微信开放社区(原来微信官方还有这么一个地方

在里头找到了解决办法。

实现的效果应该就是在设置中关掉GPU加速渲染。

解决方法如下:

在该路径下

   

C:\Users\~\AppData\Local\微信开发者工具\User Data\WeappLocalData

   

创建一个文件名为:

localstorage_b72da75d79277d2f5f9c30c9177be57e.json

的文件。

文件内容为:

{

"show": false,

"currentCategory": "general",

"compiler": {

"clusterCompile": false,

"autoPreview": false,

"autoRemoteDebug": false

},

"general": {

"openLastModifiedProject": true,

"autoPreviewType": "mobile",

"autoRemoteDebugType": "mobile",

"maxLogLength": 300,

"enableNewFW": true,

"enableGPU": false,

"ignoreUnsafeProxy": false,

"locale": "zh",

"defaultWorkspace": "/Users/kunlideng/WeChatProjects"

},

"appearance": {

"theme": "dark",

"devtoolsTheme": "dark",

"fontFamily": "SF Mono",

"fontSize": 12,

"lineHeight": 20,

"simulatorAlignment": "left"

},

"edit": {

"tabSize": 2,

"insertSpaces": true,

"wrap": "on",

"minimap": false,

"gitIgnoreWindowsReturn": true,

"autoTypingsDetectEnabled": true,

"alwaysOpenFileInNewTab": false,

"autoSave": false,

"autoRefresh": false,

"saveBeforeCompile": false,

"saveBeforePreview": false,

"saveBeforeUpload": false

},

"proxy": {

"proxyType": "SYSTEM",

"proxyHost": "127.0.0.1",

"proxyPort": "12639"

},

"notification": {

"bbs": true,

"sys": true,

"alarm": true

},

"security": {

"enableServicePort": true,

"port": 19195

},

"geo": {

"enabled": false,

"latitude": 39.92,

"longitude": 116.46,

"speed": -1,

"accuracy": 65,

"altitude": 0,

"verticalAccuracy": 65,

"horizontalAccuracy": 65

},

"shortcuts": {

"_editingShortcuts": false,

"toggleToolbar": {

"modifiers": ["cmd", "shift"],

"key": "T"

},

"toggleSimulatorWindow": {

"modifiers": ["cmd", "alt"],

"key": "S"

},

"toggleEditorWindow": {

"modifiers": ["cmd", "shift"],

"key": "E"

},

"toggleFileTree": {

"modifiers": ["cmd", "shift"],

"key": "M"

},

"toggleDebugWindow": {

"key": "I",

"modifiers": ["cmd", "shift"]

},

"rebuild": {

"key": "B",

"modifiers": ["cmd"]

},

"format": {

"key": "F",

"modifiers": ["shift", "alt"]

},

"refresh": {

"key": "R",

"modifiers": ["cmd"]

},

"toggleForegroundBackgroundStatus": {

"key": "",

"modifiers": []

},

"documentationSearch": {

"key": "",

"modifiers": []

},

"gotoFile": {

"key": "P",

"modifiers": ["cmd"]

},

"gotoRecentFile": {

"key": "E",

"modifiers": ["cmd"]

},

"preview": {

"key": "P",

"modifiers": ["shift", "cmd"]

},

"upload": {

"key": "U",

"modifiers": ["shift", "cmd"]

}

},

"syncTime": 1584263702017

}

   

最终成功解决。

<<localstorage_b72da75d79277d2f5f9c30c9177be57e.json>>

posted @ 2020-04-05 17:22  红叶山庄清道夫  阅读(316)  评论(0)    收藏  举报