可以在文件中添加图片
This commit is contained in:
parent
fc65bfedcb
commit
2b6278245d
2
App.vue
2
App.vue
|
|
@ -8,7 +8,7 @@
|
||||||
// 如果还没有 token,则设置一个测试 token
|
// 如果还没有 token,则设置一个测试 token
|
||||||
const token = uni.getStorageSync('token')
|
const token = uni.getStorageSync('token')
|
||||||
if (!token) {
|
if (!token) {
|
||||||
const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdlMmE1MjgwLTllYWQtNDVhMS04ZTA0LWYyNWRkZmEzMDYwMiJ9.sJH7nZEzqbfPqTFZYF8FrzT7GwlTO7OggGkxd7381naSfcaflEBgeCoV2xSVUAoKpAl4xeH0vT-e1cr5abcu9A'
|
const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImUzMDY4YzNjLThiOTMtNGExNy1hNmFlLWY1NDg5ZTJjYmYyOSJ9.k1cspIDAA_Z357hbRC0PY3PPwRLjTlvezrq37rgVVSYL_T11nDjF3IOWw7QZoEK1uZKYKNn_rAhuqKGOoopvWw'
|
||||||
uni.setStorageSync('token', testToken)
|
uni.setStorageSync('token', testToken)
|
||||||
console.log('已设置测试 token:', testToken)
|
console.log('已设置测试 token:', testToken)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -293,7 +293,7 @@ const chooseFiles = async () => {
|
||||||
try {
|
try {
|
||||||
uni.chooseFile({
|
uni.chooseFile({
|
||||||
count: remainingCount,
|
count: remainingCount,
|
||||||
extension: ['.pdf', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar'],
|
extension: ['.pdf', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar','.jpg','.png'],
|
||||||
success: async (res) => {
|
success: async (res) => {
|
||||||
try {
|
try {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user