去除console,升级组件
This commit is contained in:
parent
e7423df44e
commit
a137ac16df
@ -105,7 +105,6 @@ export default {
|
|||||||
}, 3000)
|
}, 3000)
|
||||||
},
|
},
|
||||||
search() {
|
search() {
|
||||||
console.log(this.searchVal)
|
|
||||||
if (this.searchVal !== '') this.$router.push({ path: 'search?q=' + this.searchVal })
|
if (this.searchVal !== '') this.$router.push({ path: 'search?q=' + this.searchVal })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
34
package.json
34
package.json
@ -7,37 +7,37 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server",
|
"dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server",
|
||||||
"build": "nuxt build",
|
"build": "nuxt build",
|
||||||
"start": "cross-env NODE_ENV=production HOST=0.0.0.0 PORT=8888 node server/index.js",
|
"start": "cross-env NODE_ENV=production HOST=0.0.0.0 PORT=80 node server/index.js",
|
||||||
"generate": "nuxt generate",
|
"generate": "nuxt generate",
|
||||||
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --ignore-path .eslintignore .",
|
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --ignore-path .eslintignore .",
|
||||||
"precommit": "npm run lint"
|
"precommit": "npm run lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.14",
|
"@fortawesome/fontawesome-svg-core": "^1.2.15",
|
||||||
"@fortawesome/free-brands-svg-icons": "^5.7.1",
|
"@fortawesome/free-brands-svg-icons": "^5.7.2",
|
||||||
"@fortawesome/free-regular-svg-icons": "^5.7.1",
|
"@fortawesome/free-regular-svg-icons": "^5.7.2",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.7.1",
|
"@fortawesome/free-solid-svg-icons": "^5.7.2",
|
||||||
"@fortawesome/vue-fontawesome": "^0.1.5",
|
"@fortawesome/vue-fontawesome": "^0.1.5",
|
||||||
"@nuxtjs/axios": "^5.3.6",
|
"@nuxtjs/axios": "^5.4.0",
|
||||||
"cross-env": "^5.2.0",
|
"cross-env": "^5.2.0",
|
||||||
"highlight.js": "^9.14.2",
|
"highlight.js": "^9.15.6",
|
||||||
"koa": "^2.6.2",
|
"koa": "^2.7.0",
|
||||||
"moment": "^2.24.0",
|
"moment": "^2.24.0",
|
||||||
"nuxt": "^2.3.4"
|
"nuxt": "^2.4.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxtjs/eslint-config": "^0.0.1",
|
"@nuxtjs/eslint-config": "^0.0.1",
|
||||||
"babel-eslint": "^8.2.1",
|
"babel-eslint": "^10.0.1",
|
||||||
"eslint": "^5.0.1",
|
"eslint": "^5.15.0",
|
||||||
"eslint-config-standard": ">=12.0.0",
|
"eslint-config-standard": ">=12.0.0",
|
||||||
"eslint-loader": "^2.0.0",
|
"eslint-loader": "^2.1.2",
|
||||||
"eslint-plugin-import": ">=2.14.0",
|
"eslint-plugin-import": ">=2.16.0",
|
||||||
"eslint-plugin-jest": ">=21.24.1",
|
"eslint-plugin-jest": "^22.3.0",
|
||||||
"eslint-plugin-node": ">=7.0.1",
|
"eslint-plugin-node": ">=8.0.1",
|
||||||
"eslint-plugin-promise": ">=4.0.1",
|
"eslint-plugin-promise": ">=4.0.1",
|
||||||
"eslint-plugin-standard": ">=4.0.0",
|
"eslint-plugin-standard": ">=4.0.0",
|
||||||
"eslint-plugin-vue": "^5.0.0",
|
"eslint-plugin-vue": "^5.2.2",
|
||||||
"nodemon": "^1.18.9",
|
"nodemon": "^1.18.10",
|
||||||
"pug": "^2.0.3",
|
"pug": "^2.0.3",
|
||||||
"pug-plain-loader": "^1.0.0",
|
"pug-plain-loader": "^1.0.0",
|
||||||
"stylus": "^0.54.5",
|
"stylus": "^0.54.5",
|
||||||
|
@ -98,7 +98,6 @@ export default {
|
|||||||
tocIdsTop.push(tTop)
|
tocIdsTop.push(tTop)
|
||||||
tocIdsTopMap.set(tTop, '#' + this.tocIds[n])
|
tocIdsTopMap.set(tTop, '#' + this.tocIds[n])
|
||||||
}
|
}
|
||||||
console.log(tocIdsTop)
|
|
||||||
|
|
||||||
const findInIds = (arr, num) => { for (let x = 0; x < arr.length; x++) { if (arr[x] > num) { return x - 1 } } }
|
const findInIds = (arr, num) => { for (let x = 0; x < arr.length; x++) { if (arr[x] > num) { return x - 1 } } }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user