Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
occloud-server
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
yangjiarong
occloud-server
Commits
ad2a7b7c
Commit
ad2a7b7c
authored
Aug 03, 2022
by
liuliufashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9710a859
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
18 deletions
+10
-18
package.json
web-vue-admin/package.json
+1
-1
request.ts
web-vue-admin/src/utils/request.ts
+8
-15
index.vue
...min/src/views/goods-cabinet/components/goodsubs/index.vue
+1
-1
index.vue
web-vue-admin/src/views/login/index.vue
+0
-1
No files found.
web-vue-admin/package.json
View file @
ad2a7b7c
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve
--mode dev --open
"
,
"build"
:
"vue-cli-service build --mode prod"
,
"lint"
:
"vue-cli-service lint"
,
"dev"
:
"vue-cli-service serve --mode dev --open"
,
...
...
web-vue-admin/src/utils/request.ts
View file @
ad2a7b7c
import
axios
from
"axios"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
getToken
}
from
"./token"
;
import
{
useRouter
}
from
"vue-router"
;
const
router
=
useRouter
()
// 创建axios实例
const
instance
=
axios
.
create
({
...
...
@@ -42,23 +41,17 @@ instance.interceptors.response.use(
}
else
{
return
response
.
data
}
}
else
if
(
response
.
status
===
302
){
message
.
error
(
'登录超时'
);
localStorage
.
removeItem
(
'session_id'
)
router
.
replace
({
path
:
'/login'
})
}
else
if
(
response
.
status
===
405
){
message
.
error
(
'登录超时'
);
localStorage
.
removeItem
(
'session_id'
)
router
.
replace
({
path
:
'/login'
})
}
else
{
}
{
message
.
error
(
'api请求失败'
);
}
},
function
(
error
)
{
message
.
error
(
'登录超时'
);
localStorage
.
removeItem
(
'session_id'
)
localStorage
.
removeItem
(
'uid'
)
console
.
log
(
window
.
location
.
host
);
window
.
location
.
href
=
window
.
location
.
host
return
Promise
.
reject
(
error
);
}
);
...
...
web-vue-admin/src/views/goods-cabinet/components/goodsubs/index.vue
View file @
ad2a7b7c
...
...
@@ -50,7 +50,7 @@
@
blur=
"onEditorBlur($event)"
@
change=
"onEditorChange($event)"
/>
</div>
<div
class=
"editor-text"
>
<p>
1、商品描述需符合《中华人民共和国广告法》
</p>
<p>
1、商品描述需符合《中华人民共和国广告法》
。
</p>
<p>
2、详情图片宽度750,高度不超过5000,每张图片最大不超过2M,图片仅支持JPG、JPEG、PNG格式。
</p>
...
...
web-vue-admin/src/views/login/index.vue
View file @
ad2a7b7c
...
...
@@ -76,7 +76,6 @@ import { useRouter } from "vue-router";
import
{
defineExpose
,
reactive
,
ref
,
toRaw
,
onMounted
}
from
"vue"
;
import
{
onLogin
}
from
"@/api/index"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
useStore
}
from
"vuex"
;
import
{
setToken
,
getToken
}
from
"@/utils/token"
;
import
{
setUserInfo
,
setUid
}
from
"@/utils/userInfo"
;
interface
FormState
{
...
...
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