Revert "fix:不完整书号不触发转换,防止污染ISBN字段"

This reverts commit b2fe3b2fa7.
This commit is contained in:
97694732@qq.com 2026-06-15 11:32:16 +08:00
parent b2fe3b2fa7
commit 9e623e65ab

View File

@ -1262,12 +1262,12 @@ export default {
methods: {
// ISBN-10 ISBN-13
convertIsbn10To13(isbn) {
if (!isbn) return ''
if (!isbn) return isbn
//
var clean = isbn.replace(/[-\s]/g, '')
// 10X
var match = clean.match(/^(\d{9})([\dXx])$/)
if (!match) return ''
if (!match) return isbn
// 9 + 978
var digits = '978' + match[1]
// ISBN-13