diff --git a/server/robot/accord/src/bundle.lua b/server/robot/accord/src/bundle.lua index d643980c..b8dc20df 100644 --- a/server/robot/accord/src/bundle.lua +++ b/server/robot/accord/src/bundle.lua @@ -616,66 +616,6 @@ var DataUtils = { } var scope = null var http = null - // //加载资源 - // function loadSrc(src_list) { - // var elementList = []; - // var promises = []; - // var domain = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port - // for (var i = 0; i < src_list.length; i++) { - // var name = src_list[i]; - // var extension = name.substring(name.lastIndexOf('.') + 1) - // var tagName = null - // var element = null; - // if (extension == "css") { - // element = document.createElement("link"); - // element.rel = "stylesheet"; - // element.href = domain + "/load_src?name=" + name; - // } - // else if (extension == "js") { - // element = document.createElement("script"); - // element.src = domain + "/load_src?name=" + name; - // } - // if (!extension || !element) { - // continue - // } - // var promise = new Promise(function (resolve, reject) { - // element.onload = function () { - // resolve(); - // }; - // }); - // elementList.push(element); - // promises.push(promise); - // } - // elementList.forEach(function (element) { - // document.head.appendChild(element); - // }); - // return Promise.all(promises); - // } - // window.addEventListener('DOMContentLoaded', function () { - // //加载js文件列表 - // http.get('/src_list', {}).then(function (response) { - // if (response.status != 200) { - // alert("资源加载失败,请刷新网页重新尝试!") - // return - // } - // var src_list = [] - // var data = response.data; - // for (var i = 0; i < data.length; i++) { - // var name = data[i] - // if (name == "index.html") { - // continue - // } - // src_list.push(name) - // } - // //加载资源 - // loadSrc(src_list).then(function () { - // NetUtils.init(http) - // scope.loadData() - // }) - // console.log("response=%s", JSON.stringify(response)) - // }) - // }); - var app = angular.module('robot', []) app.directive('scroll', function () { return { diff --git a/server/robot/accord/src/index.html b/server/robot/accord/src/index.html index b1181d99..d796d269 100644 --- a/server/robot/accord/src/index.html +++ b/server/robot/accord/src/index.html @@ -453,66 +453,6 @@