opt:kit套件优化

This commit is contained in:
zhangzq
2026-02-23 22:51:40 +08:00
parent fbfa2ed8e8
commit 2a2045e8ee
41 changed files with 151 additions and 870 deletions

View File

@@ -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

View File

@@ -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",

View File

@@ -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'
}
}
}

View File

@@ -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: '关闭',