|
@@ -41,4 +41,6 @@ async function uploadDoc(title, content) {
|
|
|
return `https://nebuai.oss-cn-hangzhou.aliyuncs.com/${key}`
|
|
return `https://nebuai.oss-cn-hangzhou.aliyuncs.com/${key}`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-uploadDoc('test', '# test')
|
|
|
|
|
|
|
+uploadDoc('test', '# test').then((res) => {
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+})
|