diff --git a/pages/SyntaxCase/consoleTest.vue b/pages/SyntaxCase/consoleTest.vue
index 1936c811ef8e50fc2e3a8422394a1ade86e13e3f..54d896a8b6629e710e0de1c333f2934c901319d8 100644
--- a/pages/SyntaxCase/consoleTest.vue
+++ b/pages/SyntaxCase/consoleTest.vue
@@ -4,6 +4,7 @@
+
@@ -16,6 +17,7 @@
logObjectTest,
logFunctionTest,
logDateTest,
+ logFileTest,
logDateCombineTest
} from '@/uni_modules/uts-advance'
@@ -43,6 +45,9 @@
logFunction() {
logFunctionTest()
},
+ logFile() {
+ logFileTest()
+ },
logDate() {
logDateTest()
},
diff --git a/uni_modules/uts-advance/utssdk/app-android/index.uts b/uni_modules/uts-advance/utssdk/app-android/index.uts
index 6c69a97d260865b256f555b54a9e0e9c9e449d03..475cae4ea324f4e4ff0b9b5b74f89474e15623ec 100644
--- a/uni_modules/uts-advance/utssdk/app-android/index.uts
+++ b/uni_modules/uts-advance/utssdk/app-android/index.uts
@@ -26,6 +26,7 @@ import {
UTSAndroid
} from "io.dcloud.uts";
import array from 'android.R.array';
+import File from 'java.io.File';
@@ -448,6 +449,11 @@ export function logFunctionTest(){
}
+
+export function logFileTest(){
+ console.log(new File("/sdcard/temp/1.txt"))
+}
+
export function logDateTest(){
console.log(new Date())
}