- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
625 B
JavaScript
17 lines
625 B
JavaScript
'use strict';
|
|
const { cppdb } = require('../util');
|
|
|
|
module.exports = function serialize(options) {
|
|
if (options == null) options = {};
|
|
|
|
// Validate arguments
|
|
if (typeof options !== 'object') throw new TypeError('Expected first argument to be an options object');
|
|
|
|
// Interpret and validate options
|
|
const attachedName = 'attached' in options ? options.attached : 'main';
|
|
if (typeof attachedName !== 'string') throw new TypeError('Expected the "attached" option to be a string');
|
|
if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
|
|
|
|
return this[cppdb].serialize(attachedName);
|
|
};
|