no message

This commit is contained in:
CN32479-詹红柱 2021-08-18 20:48:44 +08:00
parent 7e4a538f5e
commit bbd4af9ce7
4 changed files with 508 additions and 71 deletions

574
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,6 +12,8 @@
"element-plus": "^1.0.2-beta.70", "element-plus": "^1.0.2-beta.70",
"granim": "^2.0.0", "granim": "^2.0.0",
"gsap": "^3.7.0", "gsap": "^3.7.0",
"js-cookie": "^3.0.0",
"leancloud-storage": "^4.11.1",
"vue": "^3.0.0" "vue": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -215,6 +215,7 @@ export default {
}).then(() => { }).then(() => {
const params = { username: '', password: '' } const params = { username: '', password: '' }
Api.logout(params.username, params.password).then((res) => { Api.logout(params.username, params.password).then((res) => {
console.log(res)
Cookie.remove('userInfo') Cookie.remove('userInfo')
setUsername() setUsername()
}) })

View File

@ -5,7 +5,7 @@ module.exports = {
proxy: { proxy: {
// 配置前端代理转发地址 // 配置前端代理转发地址
'/api': { '/api': {
target: 'http://192.168.1.5:5000', target: 'https://api.zhanhongzhu.top',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api': '/api' '^/api': '/api'