42 lines
1.4 KiB
TypeScript
42 lines
1.4 KiB
TypeScript
// 注意:由于小程序的限制,tabBar文本和页面标题需要在运行时动态设置
|
||
// 这里保留中文作为默认值,实际的国际化会在运行时处理
|
||
export default defineAppConfig({
|
||
pages: [
|
||
'pages/home/index', // 新的模板卡片首页
|
||
'pages/history/index', // 历史记录页面
|
||
'pages/friends-photo/index', // 好友合照页面
|
||
'pages/result/index',
|
||
],
|
||
tabBar: {
|
||
color: '#8E9BAE',
|
||
selectedColor: '#1D1F22',
|
||
backgroundColor: '#FFFFFF',
|
||
borderStyle: 'black',
|
||
list: [
|
||
{
|
||
pagePath: 'pages/home/index',
|
||
text: '游乐场', // 运行时会被替换为对应语言
|
||
iconPath: './assets/icons/playground.png',
|
||
selectedIconPath: './assets/icons/playground-selected.png',
|
||
},
|
||
{
|
||
pagePath: 'pages/history/index',
|
||
text: '我的', // 运行时会被替换为对应语言
|
||
iconPath: './assets/icons/user.png',
|
||
selectedIconPath: './assets/icons/user-selected.png',
|
||
},
|
||
],
|
||
},
|
||
window: {
|
||
backgroundTextStyle: 'light',
|
||
navigationBarBackgroundColor: '#fff',
|
||
navigationBarTitleText: '图生视频', // 运行时会被替换为对应语言
|
||
navigationBarTextStyle: 'black',
|
||
},
|
||
permission: {
|
||
'scope.album': {
|
||
desc: '用于保存生成的图片和视频到相册', // 运行时会被替换为对应语言
|
||
},
|
||
},
|
||
});
|