Commit bf9a6c31 by caoyanzhi

update: 组件引入

parent d9fb1c1b
......@@ -17,11 +17,9 @@
<!-- 组件引用cdn -->
<script>
(function() {
// var src = '/component/static/import-component.js?timestrap=' + new Date().getTime();
var src = '/static/import-component.js?timestrap=' + new Date().getTime();
var src = '/component/static/import-component.js?timestrap=' + new Date().getTime();
var host = window.location.host;
// host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'localhost:8090' : host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
document.write('<script src="//' + host + src + '"><\/script>');
})();
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment