opt:kit套件优化
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
ENV = 'development'
|
||||
|
||||
# 接口地址
|
||||
VUE_APP_BASE_API = 'http://localhost:8010'
|
||||
VUE_APP_WS_API = 'ws://localhost:8010'
|
||||
VUE_APP_BASE_API = 'http://localhost:8011'
|
||||
VUE_APP_WS_API = 'ws://localhost:8011'
|
||||
|
||||
# 是否启用 babel-plugin-dynamic-import-node插件
|
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"dev": "vue-cli-service serve",
|
||||
"dev_mac": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
|
||||
"build:prod": "vue-cli-service build",
|
||||
"build:stage": "vue-cli-service build --mode staging",
|
||||
"preview": "node build/index.js --preview",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
window.g = {
|
||||
dev: {
|
||||
VUE_APP_BASE_API: 'http://127.0.0.1:8010'
|
||||
VUE_APP_BASE_API: 'http://127.0.0.1:8011'
|
||||
},
|
||||
prod: {
|
||||
VUE_APP_BASE_API: 'http://10.4.46.150:8011'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,12 +85,14 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
truncateOrFullText(text) {
|
||||
if (text.length > 1000) {
|
||||
debugger
|
||||
if (text != null && text.length > 1000) {
|
||||
return text.slice(0, 1000) + '...'
|
||||
}
|
||||
return text
|
||||
},
|
||||
handleClick(content) {
|
||||
debugger
|
||||
if (content.length > 1000) {
|
||||
this.$alert(content, '完整内容', {
|
||||
confirmButtonText: '关闭',
|
||||
|
||||
Reference in New Issue
Block a user