Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
王衍超
rbc-demo
Commits
2ba90028
Commit
2ba90028
authored
Jan 17, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改静态资源引用
parent
161155c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
20 deletions
+21
-20
.eslintrc.js
develop/@rbc/rbc-news/.eslintrc.js
+16
-16
custom-field-editor.vue
...p/@rbc/rbc-news/src/views/article/custom-field-editor.vue
+3
-3
vue.config.js
develop/@rbc/rbc-news/vue.config.js
+2
-1
No files found.
develop/@rbc/rbc-news/.eslintrc.js
View file @
2ba90028
module
.
exports
=
{
//
root: true,
//
env: {
//
node: true
//
},
//
'extends': [
//
'plugin:vue/essential',
//
'eslint:recommended'
//
],
//
parserOptions: {
//
parser: 'babel-eslint'
//
},
//
rules: {
//
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
//
'no-unused-vars': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
//
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
//
}
root
:
true
,
env
:
{
node
:
true
},
'extends'
:
[
'plugin:vue/essential'
,
'eslint:recommended'
],
parserOptions
:
{
parser
:
'babel-eslint'
},
rules
:
{
'no-console'
:
process
.
env
.
NODE_ENV
===
'production'
?
'warn'
:
'off'
,
'no-unused-vars'
:
process
.
env
.
NODE_ENV
===
'production'
?
'warn'
:
'off'
,
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production'
?
'warn'
:
'off'
}
}
develop/@rbc/rbc-news/src/views/article/custom-field-editor.vue
View file @
2ba90028
...
...
@@ -407,7 +407,7 @@
initialFrameWidth
:
'100%'
,
elementPathEnabled
:
false
,
wordCount
:
false
,
serverUrl
:
osConfig
.
baseUrl
+
"/ue"
,
serverUrl
:
window
.
osConfig
.
baseUrl
+
"/ue"
,
// cookie_keys_tenant_id: SEDU.Util.tenant_key,
// cookie_keys_x_auth_token: nros.getToken()
};
...
...
@@ -484,13 +484,13 @@
return
require
(
"../../assets/article/"
+
name
);
},
insertEditorHtml
(
imgName
){
let
imgUrl
=
window
.
location
.
origin
+
this
.
getMaterialStyle
(
imgName
);
//let imgUrl = window.location.origin + this.getMaterialStyle(imgName);
let
imgUrl
=
this
.
getMaterialStyle
(
imgName
);
this
.
$refs
[
'uEditor'
].
execCommand
(
'focus'
);
this
.
$refs
[
'uEditor'
].
execCommand
(
'insertimage'
,
{
src
:
imgUrl
,
});
}
},
created
()
{
...
...
develop/@rbc/rbc-news/vue.config.js
View file @
2ba90028
...
...
@@ -55,7 +55,8 @@ var config = {
}
},
extract
:
false
}
},
publicPath
:
process
.
env
.
npm_package_name
?
`output/
${
process
.
env
.
npm_package_name
}
/dist`
:
'/'
,
}
lintOnSave
:
false
,
...
...
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