diff --git a/pages.json b/pages.json index 4b62463379a1bcf5edd91a141b545ccd3b0b7a1f..f028d2f8dec54d30349881e4af8d078812f0a173 100644 --- a/pages.json +++ b/pages.json @@ -122,6 +122,7 @@ } }, // #endif + // #ifndef APP-IOS { "path": "pages/directive/v-html/v-html-options", "style": { @@ -134,6 +135,7 @@ "navigationBarTitleText": "v-html 组合式 API" } }, + // #endif { "path": "pages/directive/v-show/v-show-options", "style": { diff --git a/pages/directive/v-html/v-html.test.js b/pages/directive/v-html/v-html.test.js index 41eb2d63c47236f19c392bd1edcbe02c98861e92..044077d9e413dcf449c7663dccd38b42ce1aba64 100644 --- a/pages/directive/v-html/v-html.test.js +++ b/pages/directive/v-html/v-html.test.js @@ -4,6 +4,14 @@ const COMPOSITION_PAGE_PATH = '/pages/directive/v-html/v-html-composition' // TODO: ios 暂不支持 describe('v-html', () => { + const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() + const isIos = platformInfo.includes('ios') + if (isIos) { + it("ios platform not support", async () => { + expect(1).toBe(1); + }); + return + } let page const test = async () => { diff --git a/pages/index/index.uvue b/pages/index/index.uvue index 9a14083132f2293cf3927106240a65cde70ce3a5..49e4aea62b4f6b712415fafc528a49a876cddfa0 100644 --- a/pages/index/index.uvue +++ b/pages/index/index.uvue @@ -637,7 +637,8 @@ export default { { id: 'directive', name: '指令', - pages: [ + pages: [ + // #ifndef APP-IOS { id: 'v-html', name: 'v-html', @@ -653,7 +654,8 @@ export default { url: 'v-html-composition' }, ] - }, + }, + // #endif { id: 'v-show', name: 'v-show',