Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
92364f6f
Commit
92364f6f
authored
Aug 31, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 调整组件引入方式
parent
8ba8eb57
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
webpack.base.conf.js
build/webpack.base.conf.js
+4
-3
index.html
index.html
+4
-6
No files found.
build/webpack.base.conf.js
View file @
92364f6f
...
...
@@ -33,10 +33,11 @@ module.exports = {
:
config
.
dev
.
assetsPublicPath
},
externals
:
{
'vue'
:
'Vue'
,
vue
:
'Vue'
,
axios
:
'axios'
,
vuex
:
'Vuex'
,
'vue-router'
:
'VueRouter'
,
'vuex'
:
'Vuex'
,
'element-ui'
:
'ELEMENT'
'element-ui'
:
'ELEMENT'
,
},
resolve
:
{
extensions
:
[
'.js'
,
'.vue'
,
'.json'
],
...
...
index.html
View file @
92364f6f
...
...
@@ -13,7 +13,7 @@
<meta
charset=
"utf-8"
>
<link
rel=
"shortcut icon"
href=
"./favicon.ico"
/>
<title>
好办管理平台
</title>
<
!-- <link rel="stylesheet" type="text/css" href="//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.58.4.css" /> --
>
<
link
rel=
"stylesheet"
type=
"text/css"
href=
"//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.69.css"
/
>
</head>
...
...
@@ -22,13 +22,11 @@
<!-- built files will be auto injected -->
<!-- 公共库引用 cdn -->
<script>
// (function() {
// var host = window.location.host;
// document.write('
<
script
src
=
"//'+ (host.indexOf('localhost')>-1?'four.gicdev.com':host) + '/component-library/static/import-component.js?timestrap='+ new Date().getTime() +'"
><
\
/
script
>
')
// })()
(
function
()
{
var
src
=
'/component/static/import-component.js?timestrap='
+
new
Date
().
getTime
();
var
host
=
window
.
location
.
host
;
document.write('
<
script
src
=
"//'+ (host == 'ideal.demogic.com' ? host : 'four.gicdev.com') + '/component-library/static/import-component.js?timestrap='+ new Date().getTime() +'"
><
\
/
script
>
')
host
=
host
.
indexOf
(
'localhost'
)
>
-
1
||
host
.
indexOf
(
'192.168'
)
>
-
1
?
'gicdev.demogic.com'
:
host
;
document
.
write
(
'<script src="//'
+
host
+
src
+
'"><
\
/script>'
)
})()
</script>
</body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment