Skip to content

Commit a7b798a

Browse files
Alex-Sokolovposva
authored andcommitted
[RU] Translation update (#1720)
* navigation-guards.md нумерация версии * history-mode.md правки по IIS
1 parent 7351ae1 commit a7b798a

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Diff for: docs/ru/advanced/navigation-guards.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const router = new VueRouter({
7777
Наконец, сторожевой хук можно указать и непосредственно в компоненте (том, что указан в конфигурации пути), используя следующие опции:
7878

7979
- `beforeRouteEnter`
80-
- `beforeRouteUpdate` (добавлено в версии 2.2)
80+
- `beforeRouteUpdate` (добавлено в версии 2.2+)
8181
- `beforeRouteLeave`
8282

8383
``` js

Diff for: docs/ru/essentials/history-mode.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ http.createServer((req, res) => {
7070

7171
#### Internet Information Services (IIS)
7272

73+
1. Установить [IIS UrlRewrite](https://www.iis.net/downloads/microsoft/url-rewrite)
74+
2. Создать файл `web.config` в корневом каталоге вашего сайта со следующим содержимым:
75+
7376
```xml
7477
<?xml version="1.0" encoding="UTF-8"?>
7578
<configuration>
@@ -82,17 +85,10 @@ http.createServer((req, res) => {
8285
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
8386
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
8487
</conditions>
85-
<action type="Rewrite" url="index.html" />
88+
<action type="Rewrite" url="/" />
8689
</rule>
8790
</rules>
8891
</rewrite>
89-
<httpErrors>
90-
<remove statusCode="404" subStatusCode="-1" />
91-
<remove statusCode="500" subStatusCode="-1" />
92-
<error statusCode="404" path="/survey/notfound" responseMode="ExecuteURL" />
93-
<error statusCode="500" path="/survey/error" responseMode="ExecuteURL" />
94-
</httpErrors>
95-
<modules runAllManagedModulesForAllRequests="true"/>
9692
</system.webServer>
9793
</configuration>
9894
```

0 commit comments

Comments
 (0)