mirror of
https://github.com/potato47/ccc-devtools.git
synced 2024-12-25 19:29:13 +00:00
修复1.x版本报错问题
This commit is contained in:
parent
9c604e39e5
commit
66bd629e55
11
js/app.js
11
js/app.js
@ -4,7 +4,7 @@ let app = new Vue({
|
|||||||
needUpdate: false,
|
needUpdate: false,
|
||||||
is3DNode: false,
|
is3DNode: false,
|
||||||
isDevMode: false,
|
isDevMode: false,
|
||||||
isShowProfile: true,
|
isShowProfile: false,
|
||||||
isShowCache: false,
|
isShowCache: false,
|
||||||
isAutoRefreshTree: true,
|
isAutoRefreshTree: true,
|
||||||
isDarkTheme: false,
|
isDarkTheme: false,
|
||||||
@ -407,12 +407,6 @@ let app = new Vue({
|
|||||||
gameCanvas.style.height = '100%';
|
gameCanvas.style.height = '100%';
|
||||||
// document.body.style.cssText+="-webkit-transform: rotate(-90deg);-moz-transform: rotate(-90deg)";
|
// document.body.style.cssText+="-webkit-transform: rotate(-90deg);-moz-transform: rotate(-90deg)";
|
||||||
},
|
},
|
||||||
initProfiler() {
|
|
||||||
let profiler = cc.find('PROFILER-NODE');
|
|
||||||
if (profiler) {
|
|
||||||
cc.log(profiler);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
initConsoleUtil() {
|
initConsoleUtil() {
|
||||||
if (cc.tree) return;
|
if (cc.tree) return;
|
||||||
cc.tree = function (key) {
|
cc.tree = function (key) {
|
||||||
@ -545,7 +539,6 @@ let app = new Vue({
|
|||||||
document.body.insertBefore(document.getElementById('app'), document.body.firstChild);
|
document.body.insertBefore(document.getElementById('app'), document.body.firstChild);
|
||||||
|
|
||||||
let onCCInit = () => {
|
let onCCInit = () => {
|
||||||
this.initProfiler();
|
|
||||||
this.initConsoleUtil();
|
this.initConsoleUtil();
|
||||||
if (cc.sys.isMobile) {
|
if (cc.sys.isMobile) {
|
||||||
this.fitFullScreen();
|
this.fitFullScreen();
|
||||||
@ -568,7 +561,7 @@ let app = new Vue({
|
|||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
let checkCC = () => {
|
let checkCC = () => {
|
||||||
if (window.cc) {
|
if (window.cc && window.cc.director) {
|
||||||
onCCInit();
|
onCCInit();
|
||||||
clearInterval(this.$data.intervalId);
|
clearInterval(this.$data.intervalId);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user