bug: 修改eslint检查的代码缺陷
Some checks failed
Release / lint (push) Successful in 29s
Release / Release (push) Failing after 37s

This commit is contained in:
my_ong 2024-12-10 12:54:49 +08:00
parent c6d06aa24e
commit ba95bae7ef
2 changed files with 5 additions and 5 deletions

View File

@ -151,9 +151,9 @@
//
// value: number, option: { label: string, value: number }
const insertEvent = (value: string) => {
const insertEvent = (value: string | number) => {
// value
const m = materialList.value.find((item) => item.id === (value ? parseInt(value) : -1))
const m = materialList.value.find((item) => item.id === value)
if (m) {
const row: RowVO = {
id: m.id ? m.id : -1,
@ -174,12 +174,12 @@
}
// table
const removeEvent = (value: string) => {
const removeEvent = (value: string | number) => {
const $table = tableRef.value
// value
if ($table) {
$table.getTableData().fullData.forEach((item) => {
if (item.id === (value ? parseInt(value) : -1)) {
if (item.id === value) {
$table.remove(item)
}
})

View File

@ -60,7 +60,7 @@ export default defineConfig(({ mode }) => {
proxy: {
'/api': {
// target: 'https://iot.riemann.tech/api/',
target: 'http://127.0.0.1:7777',
target: 'http://127.0.0.1:8888',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},