Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-shop-manage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
2017-04-24 15:02:50 +0800
Commit
3b80ded7025f96229d11fb6964d0156547d9fb15
1 parent
541220d2
全局增加userId参数
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
5 deletions
app/build/webpack.base.conf.js
app/components/common/index.js
app/components/common/quill-editor.js
app/pages/home/overview/overview.vue
package.json
server/middleware/proxy.js
app/build/webpack.base.conf.js
View file @
3b80ded
...
...
@@ -74,7 +74,7 @@ module.exports = {
{
test
:
/
\.
vue$/
,
loader
:
'vue-loader'
,
include
:
[
util
.
resolve
(
'pages'
),
util
.
resolve
(
'components'
)],
//
include: [util.resolve('pages'), util.resolve('components')],
options
:
{
loaders
:
{
scss
:
ExtractTextPlugin
.
extract
({
...
...
app/components/common/index.js
View file @
3b80ded
import
menus
from
'./menus'
;
import
breadcrumb
from
'./breadcrumb'
;
import
userInfo
from
'./user-info'
;
// import quillEditor from './quill-editor';
export
default
[
menus
,
breadcrumb
,
userInfo
];
...
...
app/components/common/quill-editor.js
0 → 100644
View file @
3b80ded
// 懒加载vue-quill-editor
const
component
=
function
quillEditor
(
r
)
{
require
.
ensure
([],
()
=>
r
(
require
(
'vue-quill-editor'
).
quillEditor
),
'editor'
);
};
export
default
component
;
...
...
app/pages/home/overview/overview.vue
View file @
3b80ded
<template>
<div>
overview
<quill-editor v-model="content"
ref="myQuillEditor">
</quill-editor>
</div>
</template>
<script>
export default {
data() {
return {
export default {
created() {
},
data() {
return {
content: '',
editorOption: {
}
};
},
computed: {
editor() {
return this.$refs.myQuillEditor.quill;
}
}
};
</script>
<style lang="scss" scoped>
...
...
package.json
View file @
3b80ded
...
...
@@ -31,6 +31,7 @@
"uuid"
:
"^3.0.1"
,
"vue"
:
"^2.2.2"
,
"vue-cookie"
:
"^1.1.4"
,
"vue-quill-editor"
:
"^2.1.2"
,
"vue-router"
:
"^2.2.0"
,
"vue-template-compiler"
:
"^2.2.6"
,
"webpack-dev-server"
:
"^2.4.2"
,
...
...
server/middleware/proxy.js
View file @
3b80ded
...
...
@@ -40,7 +40,8 @@ module.exports = (req, res, next) => {
if (currentShop) {
let params = Object.assign(req.query, req.body, {
shopsId: currentShop.shopsId
shopsId: currentShop.shopsId,
userId: req.session.LOGIN_UID
});
return api[req.method.toLowerCase()](apiUrl, params).then(data => {
...
...
Please
register
or
login
to post a comment