merge-requests/4/head
ch 3 years ago
parent 69aecdd145
commit 7e67f0785d

@ -15,22 +15,21 @@
}, },
"dependencies": { "dependencies": {
"@nuxtjs/axios": "^5.13.6", "@nuxtjs/axios": "^5.13.6",
"cookie-universal-nuxt": "^2.1.5",
"core-js": "^3.19.3", "core-js": "^3.19.3",
"element-ui": "^2.15.8", "element-ui": "^2.15.8",
"js-util-all": "^1.0.6", "js-util-all": "^1.0.6",
"node-sass": "^4.14.1",
"nuxt": "^2.15.8", "nuxt": "^2.15.8",
"sass": "^1.32.13",
"sass-loader": "^7.3.1",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-server-renderer": "^2.6.14", "vue-server-renderer": "^2.6.14",
"vue-template-compiler": "^2.6.14", "vue-template-compiler": "^2.6.14"
"webpack": "^4.46.0"
}, },
"devDependencies": { "devDependencies": {
"@vue/test-utils": "^1.3.0", "@vue/test-utils": "^1.3.0",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"webpack": "^4.46.0",
"node-sass": "^4.14.1",
"sass": "^1.32.13",
"sass-loader": "^7.3.1",
"babel-jest": "^27.4.4", "babel-jest": "^27.4.4",
"eslint": "^8.15.0", "eslint": "^8.15.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-05-03 23:04:45 * @Date: 2022-05-03 23:04:45
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-05-09 09:40:57 * @LastEditTime: 2022-05-09 09:49:53
* @Description: file content * @Description: file content
*/ */
let axios = null let axios = null
@ -20,7 +20,7 @@ export default function({app, $axios, req}) {
// }) // })
$axiosTk.onResponse(response => { $axios.onResponse(response => {
const result = response.data; const result = response.data;
if(response.status === 200){ if(response.status === 200){
if(result.code === 'SUCCESS'){ if(result.code === 'SUCCESS'){

Loading…
Cancel
Save