Skip to content

Commit e73ebad

Browse files
committed
1、所有牵扯到增删改的操作,接口使用backend,牵扯查的接口使用forend,从而实现鉴权;
2、修复首页数据统计页面;
1 parent db2df9b commit e73ebad

File tree

14 files changed

+60
-22
lines changed

14 files changed

+60
-22
lines changed

package-lock.json

Lines changed: 25 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
"dependencies": {
1515
"axios": "^0.18.0",
1616
"dns": "^0.2.2",
17+
"echarts": "^5.2.2",
1718
"element-ui": "^2.4.5",
1819
"highlight.js": "^9.13.1",
1920
"less": "^3.8.1",
2021
"less-loader": "^4.1.0",
2122
"mavon-editor": "^2.6.17",
23+
"mime": "^2.5.2",
2224
"module": "^1.2.5",
2325
"mongodb": "^3.0.10",
2426
"vue": "^2.5.2",

src/components/Article.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
GetData:function (that) {
6969
var That = this;
7070
this.SQAjax({
71-
Url:'/api/ArticleRead/backend',
71+
Url:'/api/ArticleRead/foreend',
7272
RequestData: {
7373
PagnationData: {
7474
Skip:0,
@@ -106,7 +106,7 @@
106106
SkipTo:function (CurPage) {
107107
var That = this;
108108
That.SQAjax({
109-
Url:'/api/ArticleRead/backend',
109+
Url:'/api/ArticleRead/foreend',
110110
RequestData: {
111111
PagnationData: {
112112
Skip:(CurPage-1) * 10,

src/components/ArticleDetail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
var that = this;
2626
2727
this.SQAjax({
28-
Url:'/api/ArticleReadOne/backend',
28+
Url:'/api/ArticleReadOne/foreend',
2929
RequestData:{
3030
_id:this.$route.params.ID
3131
},

src/components/Comment.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
GetData: function () {
7676
var That = this;
7777
That.SQAjax({
78-
Url:'/api/CommentRead/backend',
78+
Url:'/api/CommentRead/foreend',
7979
RequestData: {
8080
PagnationData: {
8181
Skip:0,
@@ -145,7 +145,7 @@
145145
SkipTo:function (CurPage) {
146146
var That = this;
147147
That.SQAjax({
148-
Url:'/api/CommentRead/backend',
148+
Url:'/api/CommentRead/foreend',
149149
RequestData: {
150150
PagnationData: {
151151
Skip:(CurPage-1) * 10,

src/components/FriendUrlIndex.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default {
113113
GetData: function () {
114114
var That = this;
115115
That.SQAjax({
116-
Url: '/api/FriendUrlRead/backend',
116+
Url: '/api/FriendUrlRead/foreend',
117117
RequestData: {
118118
PagnationData: {
119119
Skip: 0,
@@ -168,7 +168,7 @@ export default {
168168
SkipTo: function (CurPage) {
169169
var That = this;
170170
That.SQAjax({
171-
Url: '/api/FriendUrlRead/backend',
171+
Url: '/api/FriendUrlRead/foreend',
172172
RequestData: {
173173
PagnationData: {
174174
Skip: (CurPage - 1) * 10,

src/components/Heartfelt.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
GetHeartfeltList:function () {
9797
var That = this;
9898
That.SQAjax({
99-
Url:'/api/HeartfeltRead/backend',
99+
Url:'/api/HeartfeltRead/foreend',
100100
Success:function (data) {
101101
data.forEach(function (Item,I) {
102102
Item.CreateDate = Item.CreateDate.slice(0,10);

src/components/MessageLeave.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
GetData:function () {
9393
var That = this;
9494
this.SQAjax({
95-
Url:'/api/MessageRead/backend',
95+
Url:'/api/MessageRead/foreend',
9696
RequestData: {
9797
PagnationData: {
9898
Skip:0,
@@ -131,7 +131,7 @@
131131
SkipTo:function (CurPage) {
132132
var That = this;
133133
That.SQAjax({
134-
Url:'/api/MessageRead/backend',
134+
Url:'/api/MessageRead/foreend',
135135
RequestData: {
136136
PagnationData: {
137137
Skip:(CurPage-1) * 10,

src/components/SnakeScores.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
var That = this;
113113
114114
That.SQAjax({
115-
Url:'/snake/scoreDelete/foreend',
115+
Url:'/snake/scoreDelete/backend',
116116
RequestData:{
117117
_id:Id
118118
},
@@ -132,7 +132,7 @@
132132
});
133133
134134
that.SQAjax({
135-
Url:'/snake/scoreMulDelete/foreend',
135+
Url:'/snake/scoreMulDelete/backend',
136136
RequestData:{
137137
idArray: that.multipleSelection
138138
},

src/components/TagIndex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
/*渲染标签列表*/
9292
GetData: function (That) {
9393
That.SQAjax({
94-
Url:'/api/TagRead/backend',
94+
Url:'/api/TagRead/foreend',
9595
Success:function (data) {
9696
That.TagList = data;
9797
}

0 commit comments

Comments
 (0)