Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多页应用导航栏支持带参数折叠吗 #10944

Open
Ferris-Cheng opened this issue Sep 20, 2024 · 1 comment
Open

多页应用导航栏支持带参数折叠吗 #10944

Ferris-Cheng opened this issue Sep 20, 2024 · 1 comment
Labels
doc optimizing document style Bug or PR related to component's style

Comments

@Ferris-Cheng
Copy link

实现场景:

我使用的框架是:https://github.com/aisuda/amis-admin/commits/master/
默认是上,左右结构,左边是导航栏,右边是内容。如下

现在,我想在多页应用里面,加一些单页,不要左边目录的简洁页面

存在的问题:

无法通过参数影藏左侧导航栏

当前方案:index.html代码如下

<title>工作台</title> <script src="./public/sdk6.0.0/sdk.js"></script>
<script> (function () { let amis = amisRequire('amis/embed'); const app = { type: 'app', "api":'/pages/site.json' }; function isCurrentUrl(to, ctx) { return true; }
    let amisInstance = amis.embed(
        '#root',
        app,
        {
        },
        {
            isCurrentUrl: isCurrentUrl,
            theme: 'antd'
        }
    );
})();
</script>

site.json内容如下
{
"status": 0,
"msg": "",
"data": {
"pages": [
]
}
}

code here...

即使site没有内容,他也是左右结构,这令我很困扰。主要这个工程很多人用,我不能改变indx.html结构

@github-actions github-actions bot added doc optimizing document style Bug or PR related to component's style labels Sep 20, 2024
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc optimizing document style Bug or PR related to component's style
Projects
None yet
Development

No branches or pull requests

1 participant